爱上soso 发表于 2013-8-28 16:28

Android腾讯微薄客户端开发十一:博主的粉丝

   
Java代码   
    <?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代码   
    <?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>   
      
页: [1]
查看完整版本: Android腾讯微薄客户端开发十一:博主的粉丝