android
sligner
这个作者很懒,什么都没留下…
展开
-
Android 中 ListView 选择后保持文字颜色
主Activity中代码final ListAdapter listAdapter = new ListAdapter(this,lstImageItem); lv.setAdapter(listAdapter); lv.setOnItemClickListener原创 2011-08-25 14:15:06 · 235 阅读 · 0 评论 -
给Button或TextView设置drawableLeft图片(左图标)
1、 xml方式布局 2、动态布局 Drawable drawable; drawable= getResources().getDrawable(R.drawable.btn_left); // The Drawables must already have had setBounds(Rect) called drawable.setBounds(0, 0, dra原创 2012-03-07 18:53:43 · 76 阅读 · 0 评论 -
带checkBox的ListView小例子
闲来无事,写一个小例子,先上图看样子先写上两个布局文件main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" a原创 2012-06-16 04:09:14 · 11899 阅读 · 1 评论