- 浏览: 239503 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
江恂泽:
楼主 这家伙会把data 拆分开来 转换成day year形 ...
JsonUtil -
mdsp25xhm:
为何没有列表查询功能?
myBatis DAO封装
xml:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center">
<ProgressBar android:id="@+id/progressBar1"
android:layout_width="wrap_content" android:layout_height="wrap_content"></ProgressBar>
<TextView android:layout_width="wrap_content" android:layout_marginTop="10dip"
android:layout_below="@+id/progressBar1" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:id="@+id/textView1"
android:text="Loading...."></TextView>
</RelativeLayout>
public void dialogProgrees(Context context)
{
dlg = new AlertDialog.Builder(context).create();
dlg.show();
dlg.getWindow().setContentView(R.layout.giftwo);
LayoutInflater factory = LayoutInflater.from(context);
View view = factory.inflate(R.layout.giftwo, null);
dlg.getWindow().setContentView(view);
}
public void dismiss()
{
this.dlg.dismiss();
}
引用:
DialogDeal deal = new DialogDeal();
deal.dialogProgrees(this);
销毁:
deal.dismiss();
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center">
<ProgressBar android:id="@+id/progressBar1"
android:layout_width="wrap_content" android:layout_height="wrap_content"></ProgressBar>
<TextView android:layout_width="wrap_content" android:layout_marginTop="10dip"
android:layout_below="@+id/progressBar1" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:id="@+id/textView1"
android:text="Loading...."></TextView>
</RelativeLayout>
public void dialogProgrees(Context context)
{
dlg = new AlertDialog.Builder(context).create();
dlg.show();
dlg.getWindow().setContentView(R.layout.giftwo);
LayoutInflater factory = LayoutInflater.from(context);
View view = factory.inflate(R.layout.giftwo, null);
dlg.getWindow().setContentView(view);
}
public void dismiss()
{
this.dlg.dismiss();
}
引用:
DialogDeal deal = new DialogDeal();
deal.dialogProgrees(this);
销毁:
deal.dismiss();
发表评论
-
IMF简介-2
2013-07-09 17:56 861InputManager 由UI控件(View,TextVie ... -
IMF简介-1
2013-07-09 17:51 782Input Method Framework 目录 ... -
输入法 总结-3
2013-07-08 15:02 824public class MainActivity exten ... -
输入法 总结-4
2013-07-04 17:29 906public class InputActivity exte ... -
输入法 总结-3
2013-07-04 17:28 837public class InputApplication e ... -
输入法 总结-2
2013-07-04 17:23 745openwnn_pref_ja.xml <?xml v ... -
输入法 总结-2
2013-07-04 17:21 13openwnn_pref_ja.xml <?xml v ... -
输入法 总结-1
2013-07-04 17:19 772<application android ... -
Android快捷键
2013-03-15 14:39 779Home键(小房子键) 在 ... -
如何通过wifi调试android程序
2013-02-27 15:48 722android手机居然可以通过wifi进行程序的调试,太好了, ... -
Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-
2013-02-27 14:27 1619adt 出现ADB server didn't ACK, fa ... -
Android AsyncTask
2013-02-19 09:35 1068AsyncTask是抽象类,子类 ... -
Android ViewPager 左右滑动2-1
2013-01-29 10:12 1419public class PagerActivity exte ... -
Android ViewPager 左右滑动-3
2013-01-29 10:10 1073<?xml version="1.0" ... -
Android ViewPager 左右滑动-2
2013-01-29 10:10 1411/*** * 选中效果 */ pu ... -
Android ViewPager 左右滑动-1
2013-01-29 10:09 1343Store extends ActivityGroup imp ... -
Android 下载
2013-01-27 00:59 876下载apk程序代码 protected File downLo ... -
Android SDCard操作-3
2013-01-26 18:31 850public static Intent getVid ... -
Android SDCard操作-2
2013-01-26 18:30 1052/** * 判断该应用在手机中的安装情况 ... -
Android SDCard操作-1
2013-01-26 18:27 1006private static int INSTALLED = ...
相关推荐
android demo,Progress进度条,DatePicker日期选择,导航栏及按钮的处理
android demo,progressDialog的处理,由一个线程实现动态progress加载
5.7 Progress Bar 70 5.7.1 条状进度条 71 5.7.2 圆形进度条 73 5.7.3 对话框进度条 74 5.7.4 标题栏中进度条 75 5.8 SeekBar 76 5.9 RatingBar 78 本章小结 82 第6章 UI高级控件 83 6.1 列表类控件 83 ...
一款简单的Android日记本,主要使用SharedPreferences对象、处理消息的Handler对象,记录当前进度的progress变量。日记文件保存在手机存储中。
Android手机版本更新,使用okhttp网络框架进行网络请求和文件下载操作,使用Handler线程处理progress进度的实时更新,下载之后用户进行选择安装新版本,点击手机返回键或者对话框取消按钮取消文件下载,代码简单易懂...
本项目是PHPHub 社区非官方 Android 客户端, App UI 风格遵循了 Google Material Design 设计风格, 项目架构使用了 MVP 模式, 数据处理使用了 RxJava Retrofit 技术。 项目特点: 界面设计遵循 Google 设计规范 ...
AndroidQuery 一个轻量级的库,用于实现 Android 上的异步任务和操作 UI 元素。 项目含有26 个文件源文件,分析如下: auth含有: public class WebDialog extends Dialog 对话框显示网页信息 public class ...
本文实例讲述了Android编程之图片颜色处理方法。分享给大家供大家参考,具体如下: 你想做到跟美图秀秀一样可以处理自己的照片,美化自己的照片吗?其实你也可以自己做一个这样的软件,废话不多说了,直接上图,上...
android常用下拉刷新+上拉加载控件 有对内容为空和请求失败时的处理, 可以自定义Header和Footer, 可以自定义progress样式等
Android AsyncTask实现异步处理任务的方法详解 在开发Android应用时必须遵守单线程模型的原则:Android UI操作并不是线程安全的并且这些操作必须在UI线程中执行。 Android 单线程模型概念详解://...
本文实例为大家分享了Android下载进度监听和通知的具体代码,供大家参考,具体内容如下 下载管理器 关于下载进度的监听,这个比较简单,以apk文件下载为例,需要处理3个回调函数,分别是: 1.下载中 2.下载成功 3....
0、压缩包的处理: rootroot@cm-System-Product-Name:/home/wwt/a64$ tar zxvf BPI-A64-Android_SourceCode.tar.gz 增加3个编译链 Notice: Please download this file to the correct path ...
仿造美图秀秀移动鼠标调整seekbar,调整图片的颜色 项目布局如下: ... android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical tools:context=.MainActivity
Android 中主线程交 UI 线程,主要作用是运行四大组件以及处理它们和用户的交互;子线程的作业则是执行耗时任务。 Android 中的线程形态 1、AsyncTask AsyncTask 是一种轻量级的异步任务类,可以在线程池中执行后台...
AOSF:AOSF:全称为Android开放源代码框架,即Android优秀开源框架汇总。包含:网络请求okhttp,图片下载glide,数据库greenDAO,链式框架RxJava,组件路由ARouter,消息传递通信EventBus,热更新Tinker,插件化框架...
本文实例为大家分享了Android使用webView长按保存下载网络图片的具体代码,供大家参考,具体内容如下 最近发现在webView的setOnLongClickListener中可以获取到WebView.HitTestResult,根据获取的HitTestResult的Type...
本源码主要是学习SeekBar、ProgressBar用法,拖动条与进度条结合,当拖动拖动条的时候,ProgressBar跟随着变化,普通拖拉条被拉动的处理代码: SeekBar sb=(SeekBar)this.findViewById(R.id.SeekBar01); sb....
Android6.0运行时权限 RecycleView高级封装,万能RecycleView,试用90%以上布局 通过高度计算设计沉浸式状态栏 多种自定义控件(比如自定义轮播图,下载进度Progress,SubTabNavitagor,Flowlayout,阻尼会弹View,伸缩...