- 浏览: 82536 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (89)
- 源码 (2)
- tomcat服务器连接数问题解决方法 (2)
- Android (26)
- JAVA 基本 (17)
- 设计模式 (6)
- Spring Struts Hibernate ibatis Web (9)
- 汇总小结 (1)
- 性能优化 (1)
- 小算法 (1)
- Android 异常 (1)
- Http web (1)
- Linux (4)
- C C++ (1)
- JNI ANDROID (1)
- UML (1)
- 其他 (1)
- 图像 (1)
- Spring (2)
- 分布式集群 (1)
- 数据库 (4)
- jquery (1)
- oracle和mysql 积累 (0)
- struts (1)
- 宕机 (1)
- mybaties (1)
- DH_Robot1_Chn_LeChange-Baby_V1.000.0005.3.R.160407.zip (0)
- 积累 (1)
- 架构 (1)
- 基础问题? (0)
- 111 (0)
最新评论
-
jbeduhai:
表达贴切,顶一个
ThreadLocal
Android UI Listview
- 博客分类:
- Android
1. list.setAdapter(adapter);
2 adapter 会要求布局关联文件
SimpleAdapter adapter = new SimpleAdapter(this, getData(), R.layout.list_item,
new String[]{"title","img"}, new int[]{R.id.title,R.id.img});
3.<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/selector" > <ImageView android:id="@+id/img" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="20dp" /> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:text="data" android:id="@+id/title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:layout_marginLeft="20dp" android:layout_marginTop="20dp" android:textSize="14sp" android:textStyle="bold" android:textColor="@color/black" > </TextView> </LinearLayout> </LinearLayout>
selector :
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true"> <shape> <gradient android:angle="270" android:endColor="#4559F3" android:startColor="#4559F3" /> <size android:height="60dp" android:width="320dp" /> </shape> </item> <item android:state_pressed="true"> <shape> <gradient android:angle="270" android:endColor="#4559F3" android:startColor="#1C20C0" /> <size android:height="60dp" android:width="320dp" /> </shape> </item> <item> <shape> <gradient android:angle="270" android:endColor="#E8EBEE" android:startColor="#FEFFFF" /> <size android:height="60dp" android:width="320dp" /> </shape> </item> </selector>
byte[] sss = new byte[24] ;//
内部类调用拥有内部类的外部类
listAdapter = new MessageListAdapter( MailListActivity.this, mData );
mListView.setAdapter( listAdapter );
mListView.setOnScrollListener(MailListActivity.this );
dialog.dismiss();
listview 选项中包含Button 时候无法触发事件 外层layout : <android:descendantFocusability="blocksDescendants" <ImageButton android:id="@+id/batch_flag_button" android:focusable="false"
发表评论
-
HTC 刷机问题
2012-08-14 09:56 7081,没有运用工具刷机 2,没有备份系统还原 3,解锁 4 ... -
Android Parcelable
2012-05-31 21:11 1960Parcelable 传递对象时候用 Androi ... -
Android Handler
2012-05-29 16:53 597handler 将线程放入队列 Handler.poser( ... -
关于分辨率 多机型 dip px ........
2012-05-22 15:04 845320x480 (水平方向有320个像素点.垂直方向有480个 ... -
View 相关
2012-05-17 15:47 724转载文字http://hunankeda110.itey ... -
bitmap 内存溢出
2012-04-23 16:53 1237http://dyh7077063.iteye.com/blo ... -
风暴ssssss
2012-03-30 16:31 01 。做个以物易物的应用 2。大众服务和个性定制 3.菜单 ... -
Android 异常
2012-05-17 16:53 580dialog 无法依托 activity 时候 a ... -
Android title 高度定义
2012-02-04 15:56 979mainifast.xml : <activit ... -
Android apk 安装脚本
2011-11-02 17:09 1013@echo off set cur_dir=%cd% ... -
Android 基本汇
2011-10-26 09:40 7181 Activity 生命周期 一般 ... -
署名认证相关知识
2011-10-21 18:26 1986命令: 生成keystone(存放一组证书和私钥的地方) ... -
Android 动画
2011-10-12 13:30 898http://www.htcplayer.com/thread ... -
Android 源码
2011-09-05 12:51 2543http://blog.csdn.net/maxleng/ar ... -
android 上开发air flash
2011-07-08 16:55 739http://www.jamesward.com/ ... -
登录web服务器jsonAndroid
2011-05-30 16:28 636如下: -
自定义组件
2011-05-30 15:25 734http://www.cnblogs.com/TerryBlo ... -
Android 远程回调
2011-05-19 12:39 17161.点击button 发送Handler1 Message ... -
Listview 表格
2011-05-13 10:40 679http://blog.csdn.net/hellogv/ar ... -
android TextView的字体颜色设置的多种方法
2011-05-11 09:49 1572TextView 的字体设置: 1 、直接通过配置文 ...
相关推荐
NULL 博文链接:https://rensanning.iteye.com/blog/2005533
android UI进阶之实现listview中checkbox的多选与记录
老二牛车教育程矢 AndroidUI之ListView.ppt
老二牛车教育 程矢AndroidUI之ListView.rar
Android为ListView添加圆角边框效果,安卓UI设计的例子,默认情况下ListView的外框是直角的,也就是大家习惯的样式,但为了美化更突出,或者与你的应用风格更吻合,有时候可能修饰成圆角边框,本例子就是实现了这一...
解决复杂布局,scrollview嵌套ListView滑动性能的问题,提供下拉刷新和暴露对外操作listview控件UI的方法,同步博文:http://blog.csdn.net/qq_28690547/article/details/50792439
Android使用listview实现通讯录侧滑效果,listview侧滑效果,这个可广泛应用于众多应用中,基础且实用的界面UI设计技巧。
NULL 博文链接:https://rensanning.iteye.com/blog/2201789
Android下使用ListView的简单Demo,详细可以参见博客。http://www.cnblogs.com/plokmju/p/android_ListView.html
滑动listview标题置顶,listview吸顶效果,安卓系统状态栏透明,有图有源码
对 Android中ListView一些简单操作
Android自定义ListView下拉刷新实例,CustomListView源码演示包,Android自定义的下拉刷新的实例,源代码完整,带有一整套资源文件,有APK运行环境的朋友可拷贝上测试一下,或直接在Android手机内运行看效果。
028_android UI组件之 ListView和ArrayAdapter,很细致的视频教程,这个可以学哦。
9、Android的UI工具包 android-ui-utils 是一个工具包用来帮助设计和开发 Android 用户界面,包含三个单独的工具:Android Asset Studio用户界面原型模具,Android 设计预览,时常需要重复确认程序版面设计状况的 ...
android listview gridview gallery 等的综合demo
androidUI进阶之实现listview的下拉加载.pdf
Android 修复ListView复用时的Edittext显示混乱问题,修复此问题的方法,在ListView中,每个条目都有Edittext,需要把每个Edittext输入的数据保存到对应的bean中,很快写了代码,没想到最 终的显示却很混乱,后来...
Android TV listview及焦点处理 Android TV上的listview ,因为没有touch事件,只能通过按键处理,因此,用到listview时需要特殊处理: 1.复杂的view需要获取焦点,需要设置: setItemsCanFocus(true) 同时需要设置下...
Android 异步加载图片,对ListView的异步加载图片的功能演示,主要根据url读取图片返回流的方法。为了方便演示,将请求图片的链接先固定,每读取好一个图片就更新,界面比较简单,当然你可以做成比较好的,像很多好...