Android Relativelayout for the left and right layout

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.