- 博客(85)
- 收藏
- 关注
原创 ProgressDialog过时,替换
public static void ProgressBarCircleDialog(Context context) { AlertDialog.Builder builder = new AlertDialog.Builder(context, AlertDialog.THEME_HOLO_LIGHT); LayoutInflater inflater = LayoutInf...
2020-04-08 16:54:03
2690
原创 Glide、Picasso框架加载图片——ImageView中、ListView中
Glide框架加载图片——ImageView中、ListView中
2017-01-12 12:31:28
1540
转载 android中如何实现自定义倒计时时间的窗口或小插件
android中如何实现 点击一个button然后出现自定义倒计时时间的窗口或小插件,确定后开始倒计时,倒计时的数字任然显示在EditText et_show上
2016-12-28 19:55:07
1564
转载 RecyclerView 在有限的窗口中展示大量数据集
RecyclerView 在有限的窗口中展示大量数据集需要添加依赖库compile 'com.android.support:recyclerview-v7:23.1.1'
2016-12-06 17:28:16
912
转载 PopupWindow阻塞式对话框
PopupWindow是阻塞式对话框。PopupWindow弹出时,程序会等待,直到调用dismiss方法退出
2016-12-06 17:07:47
765
转载 静态加载Fragment
静态加载Fragment新建并编写Fragment的布局文件,然后新建一个类,继承自Fragment,重写onCreateView()加载Fragment的布局
2016-12-06 15:39:54
254
转载 Fragment与Activity的通信
Fragment与Activity的通信:Fragment类中定义一个接口Activity内进行接口实现Fragment在onAttach()函数里面捕获接口实现,并且调用接口方法和Activity通信
2016-12-06 15:34:46
196
转载 动态加载Fragment
动态加载Fragment创建两个Fragment用于切换获取Fragment管理器,并开启事物FragmentTransaction通过FragmentTransaction.add(resource id, fragment)将fragment添加到布局上,提交事物commit通过FragmentTransaction. replace(resource id, fragment)切换显示的fragment,提交事物commit
2016-12-06 15:23:01
234
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人