<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:minWidth="25px" android:minHeight="25px"> <ImageView android:src="@drawable/auser" android:layout_width="100dp" android:layout_height="100dp" android:id="@+id/imgUser" android:paddingTop="5dp" /> <TextView android:text="Donma Hsu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/imgUser" android:id="@+id/txtUserName" android:textColor="@color/orange" android:textSize="22dp" android:paddingLeft="5dp" /> <TextView android:text="Context..." android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/txtUserName" android:layout_toRightOf="@id/imgUser" android:id="@+id/txtIntro" android:paddingRight="10dp" android:paddingLeft="5dp" /> <TextView android:text="More" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/txtIntro" android:layout_toRightOf="@id/imgUser" android:id="@+id/txtReadMore" android:textColor="@color/blue" android:textSize="15dp" android:paddingLeft="5dp" /> <ImageView android:layout_width="match_parent" android:layout_height="150dp" android:layout_below="@id/txtReadMore" android:layout_toRightOf="@id/imgUser" android:id="@+id/imgMain" android:paddingRight="10dp" android:paddingTop="5dp" android:scaleType="fitStart" android:paddingLeft="5dp" /> <TableLayout android:stretchColumns="0,1,2" android:id="@+id/postMenu" android:gravity="center_horizontal" android:orientation="horizontal" android:minWidth="25px" android:minHeight="25px" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/imgMain" android:layout_marginTop="20dp" android:background="@drawable/customborder"> <TableRow android:layout_width="fill_parent" android:background="@color/miwhite"> <LinearLayout android:orientation="horizontal" android:minWidth="25px" android:minHeight="25px" android:layout_column="0" android:id="@+id/llComment"> <ImageView android:src="@drawable/icon_comment" android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/ivComment" /> <TextView android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="Message" android:id="@+id/txtMessage" android:gravity="center" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:minWidth="25px" android:minHeight="25px" android:id="@+id/llShare"> <ImageView android:src="@drawable/icon_share" android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/ivShare" /> <TextView android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="Share" android:id="@+id/txtShare" android:gravity="center" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:minWidth="25px" android:minHeight="25px" android:id="@+id/llTrace"> <ImageView android:src="@drawable/icon_follow" android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/ivTrace" /> <TextView android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="Trace" android:id="@+id/txtTrace" android:gravity="center" /> </LinearLayout> </TableRow> </TableLayout> </RelativeLayout>
Convert