Drawerlayout who is the menu bar test results

Source: Internet
Author: User

test Discovery Layout_gravity to controlDrawerlayout Menu Page The general argument is that the first child node of Drawerlayout is the content page, The second child node is the Drawerlayout menu page
  
 
  1. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. >
  6. <FrameLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:background="#fff" //注:白色
  10. android:layout_gravity="start"
  11. >
  12. </FrameLayout>
  13. <FrameLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:background="#ff0" //注:黄色
  17. >
  18. </FrameLayout>
  19. </android.support.v4.widget.DrawerLayout>
Test results:
  
 
  1. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. >
  6. <FrameLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:background="#fff" //白色
  10. >
  11. </FrameLayout>
  12. <FrameLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:background="#ff0" //黄色
  16. android:layout_gravity="start"
  17. >
  18. </FrameLayout>
  19. </android.support.v4.widget.DrawerLayout>
Test results:


From for notes (Wiz)

Drawerlayout who is the menu bar test results

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.