摘要:
Dialog loadingDialog = new Dialog(context, R.style.loading_dialog);类如该Context一般选择this,不会使用getApplicationContext()来获取。因为本身Activity就是一个Context。 阅读全文
摘要:
@Overrideprotected void onRestart() {super.onRestart(); String strNumber, strName = "";int type;long callTime;Date date;String time = "";String durat... 阅读全文
摘要:
Android自定义类似ProgressDialog效果的Dialog.方法如下:1.首先准备两张自己要定义成哪样子的效果的图片和背景图片(也可以不要背景)。如我要的效果:2.定义loading_dialog.xml布局文件(这里你也可以按自己的布局效果定义,关键是要有个imageView): ... 阅读全文