ChinaUnix.net
相关文章推荐:

android UI LISTVIEW 多选

本程...

by LinuxSurfing - 移动操作系统 - 2011-12-21 08:41:30 阅读(2356) 回复(0)

相关讨论

1024x768 Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 ...

by yishuihe - 移动操作系统 - 2009-05-20 17:17:37 阅读(1225) 回复(0)

本帖最后由 凝望长空 于 2011-11-15 15:46 编辑 android listview Tips 在listview中设置Selector为null会报空指针? mlistview.setSelector(null);//空指针 试试下面这种: mlistview.setSelector(new ColorDrawable(Color.TRANSPARENT)); 如何让listview初始化的时候就选中一项? listview需要在初始化好数据后,其中一项需要呈选中状态。所谓"选中状态"就是该项底色与其它项不同,setSelection(position)只能定位到某个...

android

by 凝望长空 - 移动操作系统 - 2011-11-15 15:44:58 阅读(2294) 回复(0)

android listview和ListAdapter 一个listview显示出来需要3个东西: 1,listview(用来显示数据的列表)。 2,Data(需要显示的数据)。 3,一个绑定Data和listview的适配器ListAdapter。 一,listview 1,listview的每一项其实都是TextView。 2,通过setAdapter方法来调用一个listAdapter来绑定数据。 二,ListAdapter 1,ListAdapter是绑定Data和listview的适配器。但是,它是接口,需要使用它的子类。 常见的子类有:a...

手机开发

by cu_Cbear - 移动操作系统 - 2011-06-21 17:40:27 阅读(3251) 回复(0)

android listview2 笔记 listview编程的一般步骤 1)在布局文件中声明listview控件 2) 使用一维或维动态数组保存listview要显示的数据 ; 3) 构建适配器Adapter,将数据与显示数据的布局页面绑定; 4)通过setAdapter()方法把适配器设置给listview 第一步:编写布局文件main.xml,添加三个Textview和listview实现整体布局。具体代码如下 View Code[code] 1 2

by 凝望长空 - Java - 2012-02-24 20:24:44 阅读(756) 回复(1)

android listview 异步加载图片 利用AsyncTask异步加载,实现平滑滑动加载网络图片,AsyncTask代码: Java代码[code]1.public class ImageLoadTask extends AsyncTask { 2. private int position; 3. private ImageView image; 4. // 初始化 5. public ImageLoadTask(Context context,int position,ImageView image) { 6. this.position = posit...

by so_brave - 移动操作系统 - 2011-12-27 19:26:35 阅读(3776) 回复(1)

android 列表之分组listview 运行效果: main.xml Java代码[code]1. 2.android="http://schemas.android.com/apk/res/android" 3. android:orientation="horizontal" android:layout_width="fill_parent" 4. android:layout_height="fill_parent"> 5. <listview android:layout_width="fill_parent" 6. android:layout_heigh...

android

by 中关村村草 - 移动操作系统 - 2011-11-30 16:55:10 阅读(2141) 回复(0)

android listview利用好convertView Java代码[code]1.public View getView(int position, View convertView, ViewGroup parent) { 2.ViewHolder holder = null; 3.if (convertView == null) { 4. holder=new ViewHolder(); 5. convertView = mInflater.inflate(R.layout.vlist2, null); 6. holder.img = (ImageView)convertView.findViewById(R.id.img); 7. holder.title = (TextView)convert...

android

by so_brave - 移动操作系统 - 2011-11-14 16:09:01 阅读(1738) 回复(0)

android ui事件处理

by cdlda - 移动操作系统 - 2011-12-21 08:41:31 阅读(485) 回复(0)

前些天在 http://www.androidin.com/bbs/index.php 的android开发者论坛遇到了vincentxu版主,介绍我进了android的开发团队, 加入了他们的QQ群。团队现在正在开发诸如操作系统完善, 输入法, 阅读软件, 视频播放软件, 桌面同步软件等项目。vincentxu版主介绍说目前视频播放软件和桌面同步软件项目刚刚起步,需要很人手,特别是做界面的人比较缺。于是就决定先加入视频播放软件项目,帮助大家做ui的开发工作。 目前虽然And...

by ChEu - 移动操作系统 - 2008-11-30 15:41:02 阅读(1115) 回复(0)

    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:gravity="center_horizontal">        android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"...

by zxgang_andy - Java文档中心 - 2008-09-14 12:50:39 阅读(1074) 回复(0)