日韩欧美人妻无码精品白浆,www.大香蕉久久网,狠狠的日狠狠的操,日本好好热在线观看

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

Android 自定義 ListView

admin
2013年2月25日 14:37 本文熱度 4635

先上圖:






ListView的布局文件listview.xml





[html]


  1. <?xml version="1.0" encoding="utf-8"?>  

  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  

  3.     android:orientation="horizontal"  

  4.     android:layout_width="fill_parent"  

  5.     android:layout_height="fill_parent">  

  6.     <ImageView android:id="@+id/tv_touxiang"  

  7.         android:layout_width="wrap_content"  

  8.         android:layout_height="wrap_content"  

  9.         android:src="@drawable/touxiang"  

  10.         android:layout_margin="5px"/>  

  11.     <LinearLayout android:orientation="vertical"  

  12.         android:layout_width="wrap_content"  

  13.         android:layout_height="wrap_content">  

  14.         <TextView android:id="@+id/tv_nick"  

  15.             android:layout_width="wrap_content"  

  16.             android:layout_height="wrap_content"  

  17.             android:textSize="18px" />  

  18.         <TextView android:id="@+id/tv_origtext"  

  19.             android:layout_width="wrap_content"  

  20.             android:layout_height="wrap_content"  

  21.             android:textSize="14px" />  

  22.     </LinearLayout>  

  23. </LinearLayout>  
在Activity中使用:





[java]


  1. public class HomeActivity extends Activity {  

  2.     private ListView listView;  

  3.     private List<Map<String,String>> data = new ArrayList<Map<String,String>>();  

  4.     AnalyticData analyticData=new AnalyticData();  

  5.       

  6.     protected void onCreate(Bundle savedInstanceState) {  

  7.         super.onCreate(savedInstanceState);  

  8.         setContentView(R.layout.home_activity);  

  9.         listView=(ListView) findViewById(R.id.listview);  

  10.         Map<String, String> map = new HashMap<String, String>();  

  11.         map.put("nick","張三");  

  12.         map.put("origtext","張三發(fā)了一條微博,哈哈");  

  13.         data.add(map);  

  14.         Map<String, String> map2 = new HashMap<String, String>();  

  15.         map2.put("nick","李四");  

  16.         map2.put("origtext""李四發(fā)了一條微博,哈哈");  

  17.         data.add(map2);  

  18.         SimpleAdapter adapter=new SimpleAdapter(  

  19.                 this,  

  20.                 data, //數(shù)據(jù)   

  21.                 R.layout.listview,  //listview的布局文件   

  22.                 new String[]{"nick","origtext"},  //填充的數(shù)據(jù)的key   

  23.                 new int[]{R.id.tv_nick,R.id.tv_origtext}  //填充對(duì)象的id   

  24.         );  

  25.         listView.setAdapter(adapter);  

  26.     }  

該文章在 2013/2/25 14:37:14 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

天a堂v一区| 国产日本欧美在线一区二区| 久久精精品| 美女炮机直播视频91| 在线完全免费不卡AV水霉| 亚洲AV综合一二区| 无码人妻精品一区二区玫瑰园| 色偷偷av一区二区三区| 看99re国产在线| 日韩AV无码一区二区不卡| 天天干天天爽亚洲| 美熟妇一区二区| 嗯啊后入视频| 激情日韩欧美| 少妇被干高潮| 欧美日韩國产成人在线| 91精品色综合久久久蜜桃臀| 国产精片久久久久久婷婷不卡| 超碰国产精品最近| 91国偷自产一区二区三区蜜臀,国| 91人妻国产一区二区| 亚洲午夜com| 天天日天天干天天c| 久久香蕉aaa| 高清无码成人| 欧美国产日韩一起色| 国产麻豆免费视频网站在线看| 亚洲图片欧美精品| 欧美性爱啪啪视频| 久久久久久久久久久自慰网站| 国产精品免费伦理| 久九影视一区| 一区二区偷拍自拍| 影音先锋AV亚洲专区| 久久久久性电影| 福利激情在线| 大香蕉在线视频4| AV免费观看不卡| 日韩 福利 区| 日日骚1区2区| 欧美国产欧美在线一区二区三区|