As follows:
The code is as follows:
<?XML version= "1.0" encoding= "Utf-8"?><LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"Android:background= "@color/PLATFORMBG"android:orientation= "vertical" > <LinearLayoutAndroid:layout_width= "Match_parent"Android:layout_height= "Match_parent"Android:layout_margin= "10DP"android:orientation= "vertical" > <LinearLayoutAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginleft= "10DP"android:orientation= "Horizontal" > <TextViewAndroid:id= "@+id/txttime"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "just"Android:textcolor= "#276095"android:textsize= "12DP" /> <TextViewAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginleft= "5DP"Android:text= "from"Android:textcolor= "#276095"android:textsize= "12DP" /> <TextViewAndroid:id= "@+id/txtfromuser"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginleft= "5DP"Android:text= "Administrator"Android:textcolor= "@color/white"android:textsize= "12DP" /> </LinearLayout> <RelativelayoutAndroid:layout_width= "Fill_parent"Android:layout_height= "Wrap_content"Android:background= "@color/white"android:padding= "8DP" > <LinearLayoutAndroid:id= "@+id/llleft"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignparentleft= "true" > <ImageViewAndroid:id= "@+id/imgmember"Android:layout_width= "80DP"Android:layout_height= "60DP"Android:background= "@drawable/cy_face" /> </LinearLayout> <LinearLayoutAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginleft= "5DP"Android:layout_toleftof= "@id/llright"Android:layout_torightof= "@id/llleft"android:orientation= "vertical" > <LinearLayoutAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Subject:"Android:textcolor= "@color/customgray"android:textsize= "12DP" /> <TextViewAndroid:id= "@+id/txttitle"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "About Group management solutions"Android:textcolor= "@color/customgray"android:textsize= "12DP" /> </LinearLayout> <TextViewAndroid:id= "@+id/txtcontent"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_margintop= "5DP"Android:singleline= "false"Android:text= "Knowing too much, seeing too well, will become the orphan of the world." You know, there are two things in the world that can't bear to look straight ... "Android:textcolor= "@color/customgray"android:textsize= "9DP" /> </LinearLayout> <LinearLayoutAndroid:id= "@+id/llright"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_alignparentright= "true"android:layout_centerinparent= "true"Android:layout_marginleft= "10DP" > <ImageViewAndroid:id= "@+id/imgremove"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:background= "@drawable/remove" /> </LinearLayout> </Relativelayout> </LinearLayout></LinearLayout>
Android Relativelayout for the left and right layout