ListView自定义Item,需要自己写一个Item布局文件,还是以前面的那个简单的ListView为例1.新建一个Item布局文件,res\layout\menu_item.xml<?xml version="1.0" encoding="UTF-8"?><TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_he Read More
posted @ 2012-04-23 15:02 三加二减五 Views(449) Comments(0) Diggs(0) Edit
一个简单的LisViewandroid默认样式中,item的高度是48sp1.新建项目2.添加数组字符串数组在res/values/string.xml中<?xml version="1.0" encoding="utf-8"?><resources> <string name="hello">Hello World, ListViewActivity!</string> <string name="app_name">ListView</strin Read More
posted @ 2012-04-23 14:32 三加二减五 Views(192) Comments(0) Diggs(0) Edit