10 2015 档案
TextView 图片居右
摘要:TextView 的宽是填充父窗体 , TextView的drawableLeft 属性的位置是Textview的的最左边 drawableRignt 在TextView的最右边所有。如果你将TextView的宽改为 wrap_content 那么最右边的小三角将紧靠设置这两个文字。 阅读全文
posted @ 2015-10-30 17:07 大米稀饭 阅读(1413) 评论(0) 推荐(0) 编辑
drawableRightset 和 CompoundDrawables
摘要:android:drawableRight="@drawable/check_down"在代码中的用法是:Drawable drawable = getResources().getDrawable(R.drawable.spinner_checked);drawable.setBounds(0, ... 阅读全文
posted @ 2015-10-19 13:12 大米稀饭 阅读(222) 评论(0) 推荐(0) 编辑
获取缓存大小和清除缓存功能
摘要:转载:http://blog.csdn.net/wwj_748/article/details/42737607 1 /** 2 * 主要功能有清除内/外缓存,清除数据库,清除sharedPreference,清除files和清除自定义目录 3 */ 4 import android.c... 阅读全文
posted @ 2015-10-10 15:47 大米稀饭 阅读(931) 评论(0) 推荐(0) 编辑
APP全局异常捕获,并保存本地文件
摘要:1 public class CrashHandler implements Thread.UncaughtExceptionHandler { 2 3 public static final String TAG = "CrashHandler"; 4 5 // 系... 阅读全文
posted @ 2015-10-01 18:32 大米稀饭 阅读(491) 评论(0) 推荐(0) 编辑