ZNDS智能電視網 推薦當貝市場

TV應用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計算器

綜合交流 / 評測 / 活動區(qū)

交流區(qū) | 測硬件 | 網站活動 | Z幣中心

新手入門 / 進階 / 社區(qū)互助

新手 | 你問我答 | 免費刷機救磚 | ROM固件

查看: 12279|回復: 0
上一主題 下一主題
[教程]

Android騰訊微薄客戶端開發(fā)十一:博主的粉絲

[復制鏈接]
跳轉到指定樓層
樓主
發(fā)表于 2013-8-28 16:28 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
   
Java代碼   
   
  1. <?xml version="1.0" encoding="utf-8"?>   
    <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffffff"   
            xmlns:android="http://schemas.android.com/apk/res/android">   
            <include android:id="@+id/fans_top" layout="@layout/top_panel" android:layout_alignParentTop="true"/>   
            <ListView android:id="@id/android:list" android:layout_below="@id/fans_top" android:layout_width="fill_parent" android:cacheColorHint="#00000000"   
                    android:layout_height="wrap_content" android:layout_weight="1" android:divider="@drawable/list_divider"/>   
            <RelativeLayout android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_alignParentBOTTom="true">   
                    <Button android:id="@+id/fans_back_btn" android:layout_width="40.0dip" android:drawableTop="@drawable/btn_back_selector" android:background="@drawable/bottom_back_bg"   
                            android:layout_height="40.0dip"  android:layout_alignParentLeft="true"/>   
                    <Button android:id="@+id/fans_tohome_btn" android:layout_width="40.0dip"   
                            android:layout_height="40.0dip" android:drawableTop="@drawable/btn_home_selector" android:background="@drawable/bottom_home_bg" android:layout_alignParentRight="true"/>   
            </RelativeLayout>   
    </RelativeLayout>   
復制代碼
Java代碼   
   
  1. <?xml version="1.0" encoding="utf-8"?>   
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:paddingTop="3.0dip" android:orientation="horizontal" android:background="@drawable/listitem_selector"  android:layout_width="fill_parent" android:layout_height="wrap_content">   
            <RelativeLayout android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_weight="0.0">   
                    <ImageView android:id="@+id/fans_headicon" android:layout_width="45.0dip" android:layout_height="45.0dip" android:scaleType="fitCenter" android:layout_centerInParent="true" />   
            </RelativeLayout>   
            <RelativeLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="4.0dip" android:layout_weight="1.0">   
                    <TextView android:id="@+id/fans_nick" android:textColor="#000000" android:layout_width="wrap_content" android:layout_height="32.0dip" android:textSize="14.0sp" android:layout_alignParentLeft="true"/>   
                    <TextView android:id="@+id/fans_name" android:layout_marginLeft="6.0dip" android:layout_below="@id/fans_nick" android:textColor="#ff000000" android:layout_width="wrap_content" android:layout_height="32.0dip" android:textSize="8.0sp" android:layout_alignParentLeft="true"/>   
            </RelativeLayout>   
    </LinearLayout>   
復制代碼
     

上一篇:Android 源碼制作
下一篇:android訪問Tomcat,實現數據的提交
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

Archiver|新帖|標簽|軟件|Sitemap|ZNDS智能電視網 ( 蘇ICP備2023012627號 )

網絡信息服務信用承諾書 | 增值電信業(yè)務經營許可證:蘇B2-20221768 丨 蘇公網安備 32011402011373號

GMT+8, 2025-2-3 01:02 , Processed in 0.058911 second(s), 16 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報:report#znds.com (請將#替換為@)

© 2007-2025 ZNDS.Com

快速回復 返回頂部 返回列表