Turn-to-end alignment in Android, intermediate Fill_parent method

Source: Internet
Author: User

The method of realizing the alignment and middle Fill_parent in Android

Java code:
  1. <?xml version="1.0″encoding=" utf-8″?>
  2. <linearlayout xmlns:android="Http://schemas.android.com/apk/res/android"
  3. Android:layout_width="Fill_parent"
  4. android:layout_height="Fill_parent"
  5. android:orientation="Horizontal" >
  6. <button
  7. android:id="@+id/button01"
  8. Android:layout_width="Wrap_content"
  9. android:layout_height="Wrap_content"
  10. android:text="Button01" >
  11. </Button>
  12. <textview
  13. Android:layout_width="Wrap_content"
  14. android:layout_height="Wrap_content"
  15. android:layout_weight="1"/>
  16. <button
  17. android:id="@+id/button02"
  18. Android:layout_width="Wrap_content"
  19. android:layout_height="Wrap_content"
  20. android:text="Button02" >
  21. </Button>
  22. </LinearLayout>

Turn-to-end alignment in Android, intermediate Fill_parent method

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.