Android Development--layout Elements

Source: Internet
Author: User

1.TF type

android:layout_alignparentstart= "true/flase": Snaps to the left edge of the parent element android:layout_alignparentend= "true/flase": Snaps to the right edge of the parent element android:layout_alignparenttop= "true/flase": Snaps to the top edge of the parent element android:layout_alignparentbottom= "true/flase": Snaps to the bottom edge of the parent element android:layout_centerinparent= "True/flase": fully centered relative to parent element android:layout_centerhrizontal= "true/flase": Center horizontally android:layout_centervertical= "true/flase": Center vertically 2.ID Type android:layout_above= "@+id/id": at the top of an element android:layout_below= "@+id/id": located below an element android:layout_tostartof= "@+id/id": on the left side of an element android:layout_toendof= "@+id/id": On the right side of an element android:layout_aligntop= "@+id/id": aligns the top edge of the element with the top edge of an element android:layout_alignbottom= "@+id/id": aligns the bottom edge of the element with the bottom edge of an element Android:layout_alignstart= "@+id/id": aligns the left edge of the element with the left edge of an element android:layout_alignend= "@+id/id": aligns the right edge of the element with the right edge of an element 3.DP Type android:layout_margintop= "XXDP": Distance from the top edge of an element XXDP android:layout_marginbottom= "XXDP": from the bottom edge of an element XXDP android:layout_marginleft= "XXDP": Distance to the left edge of an element XXDP android:layout_marginright= "XXDP": Distance to the right edge of an element XXDP android:layout_width= "XXDP":container the width of the component is XXDP android:layout_height= "XXDP":container The height of the component is XXDP android:text= "XXDP": The text displayed in the specified control android:textsize= "XXDP": Text size android:width= "XXDP": Control width android:height= "XXDP": Control height

Android Development--layout Elements

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.