2015年10月30日
摘要:
TextView 的宽是填充父窗体 , TextView的drawableLeft 属性的位置是Textview的的最左边 drawableRignt 在TextView的最右边所有。如果你将TextView的宽改为 wrap_content 那么最右边的小三角将紧靠设置这两个文字。
阅读全文
posted @ 2015-10-30 17:07
大米稀饭
阅读(1422)
推荐(0)
2015年10月19日
摘要:
android:drawableRight="@drawable/check_down"在代码中的用法是:Drawable drawable = getResources().getDrawable(R.drawable.spinner_checked);drawable.setBounds(0, ...
阅读全文
posted @ 2015-10-19 13:12
大米稀饭
阅读(225)
推荐(0)
2015年10月10日
摘要:
转载:http://blog.csdn.net/wwj_748/article/details/42737607 1 /** 2 * 主要功能有清除内/外缓存,清除数据库,清除sharedPreference,清除files和清除自定义目录 3 */ 4 import android.c...
阅读全文
posted @ 2015-10-10 15:47
大米稀饭
阅读(957)
推荐(0)
2015年10月1日
摘要:
1 public class CrashHandler implements Thread.UncaughtExceptionHandler { 2 3 public static final String TAG = "CrashHandler"; 4 5 // 系...
阅读全文
posted @ 2015-10-01 18:32
大米稀饭
阅读(501)
推荐(0)
2015年9月30日
摘要:
1 new Handler().postDelayed(new Runnable() { 2 @Override 3 public void run() { 4 Intent intent ...
阅读全文
posted @ 2015-09-30 13:51
大米稀饭
阅读(815)
推荐(0)
2015年9月11日
摘要:
一、线性布局所有布局都可以作为容器类使用,因此可以调用多个重载的addView()向布局管理器中添加组件。实际上,我们完全可以用一个布局管理器嵌套到其他布局管理器中---因为布局管理器也继承了View,也可以作为普通UI组件使用。【LinearLayout的常用XML属性及相关方法】android:...
阅读全文
posted @ 2015-09-11 16:17
大米稀饭
阅读(556)
推荐(0)
摘要:
rawable/progressbar 1 2 3 4 5 6 7 13 14 15 16 17 18 ...
阅读全文
posted @ 2015-09-11 11:04
大米稀饭
阅读(5198)
推荐(0)
2015年9月10日
摘要:
1 import android.annotation.TargetApi; 2 import android.content.Context; 3 import android.content.res.Resources; 4 import android.content.res.T...
阅读全文
posted @ 2015-09-10 17:25
大米稀饭
阅读(639)
推荐(0)
2015年8月28日
摘要:
1 package com.testCarema.android; 2 3 import android.app.Activity; 4 import android.app.AlertDialog; 5 import android.content.ContentResolver; ...
阅读全文
posted @ 2015-08-28 14:40
大米稀饭
阅读(660)
推荐(0)
2015年8月27日
摘要:
1 CountDownTimer countDownTimer = new CountDownTimer(60000,1000) { 2 3 @Override 4 public void onTick(long millisUntilFinished) { 5 ...
阅读全文
posted @ 2015-08-27 10:01
大米稀饭
阅读(191)
推荐(0)