First, Framelayout layout overview
In this layout, all the child elements cannot be placed in place, they are all placed in the upper-left corner of the area, and the subsequent child elements are directly above the preceding child elements, and the preceding child elements are partially and completely obscured as the following effect:
<Framelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Fill_parent"Android:layout_height= "Fill_parent" > <TextViewAndroid:id= "@+id/textview1"Android:layout_width= "300DP"Android:layout_height= "300DP"Android:text= "First page"Android:background= "#785435"android:layout_gravity= "Center" /> <TextViewAndroid:id= "@+id/textview2"Android:layout_width= "250DP"Android:layout_height= "250DP"Android:text= "Second page"Android:background= "#658622"android:layout_gravity= "Center" /> <TextViewAndroid:id= "@+id/textview3"Android:layout_width= "150DP"Android:layout_height= "150DP"Android:text= "Third page"Android:background= "#658789"android:layout_gravity= "Center" /> <TextViewAndroid:id= "@+id/textview4"Android:layout_width= "100DP"Android:layout_height= "100DP"Android:text= "Fourth page"Android:background= "#679856"android:layout_gravity= "Center" /> </Framelayout>
Second, the load progress or download the progress of the case
<Framelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Fill_parent"Android:layout_height= "Fill_parent" > <ProgressBarandroid:layout_gravity= "Center"Android:id= "@+id/progressbar1"style= "? Android:attr/progressbarstylelarge"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" /> <TextViewandroid:layout_gravity= "Center"Android:id= "@+id/textview1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "80%" /> </Framelayout>
Android Layout _ Frame Layout Framelayout