- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 227.android自定义渐变进度条
android经常会需要设置进度条,有时候不喜欢原生态的进度条,因此会自定义进度条my_progressbar.xml<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item ...
2018-08-27 03:49:48 853
原创 带暂停的断点续传
布局文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=...
2018-08-24 07:59:21 444
原创 java.lang.RuntimeException: Can't create handler inside thread that has not
在子线程中 调用了这句:Toast.makeText(UiUtils.getContext(), "正在下载"+name, Toast.LENGTH_SHORT).show();报出了下面的错误08-15 14:52:50.368 3517-3560/com.ldw.marketm E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-5...
2018-08-16 02:59:18 5045
原创 Fragment优化
App应用中遇到Fragment经常会这样写public void click1(View v){ //把fragment1的界面显示到帧布局中 //创建fragment对象 Fragment1 fg1 = new Fragment1(); //获取fragment管理器 FragmentManager fm = getFragmentMan...
2018-08-15 02:03:58 535
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人