1.TF type
android:layout_alignparentstart= "true/flase": Snaps to the left edge of the parent elementandroid:layout_alignparentend= "true/flase": Snaps to the right edge of the parent elementandroid:layout_alignparenttop= "true/flase": Snaps to the top edge of the parent elementandroid:layout_alignparentbottom= "true/flase": Snaps to the bottom edge of the parent elementandroid:layout_centerinparent= "True/flase": fully centered relative to parent elementandroid:layout_centerhrizontal= "true/flase": Center horizontallyandroid:layout_centervertical= "true/flase": Center vertically 2.ID Typeandroid:layout_above= "@+id/id": at the top of an elementandroid:layout_below= "@+id/id": located below an elementandroid:layout_tostartof= "@+id/id": on the left side of an elementandroid:layout_toendof= "@+id/id": On the right side of an elementandroid:layout_aligntop= "@+id/id": aligns the top edge of the element with the top edge of an elementandroid:layout_alignbottom= "@+id/id": aligns the bottom edge of the element with the bottom edge of an elementAndroid: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 element3.DP Typeandroid:layout_margintop= "XXDP": Distance from the top edge of an element XXDP android:layout_marginbottom= "XXDP": from the bottom edge of an element XXDPandroid:layout_marginleft= "XXDP": Distance to the left edge of an element XXDPandroid:layout_marginright= "XXDP": Distance to the right edge of an element XXDPandroid:layout_width= "XXDP":container the width of the component is XXDPandroid:layout_height= "XXDP":container The height of the component is XXDPandroid: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