Android Layout _ Frame Layout Framelayout

Source: Internet
Author: User

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

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.