Advertisement
TechnoTalkative

LinearLayout demo

May 9th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  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="wrap_content"
  5. android:orientation="vertical" >
  6.  
  7. <LinearLayout
  8. xmlns:android="http://schemas.android.com/apk/res/android"
  9. android:layout_width="fill_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_weight="0.20"
  12. android:orientation="horizontal" >
  13.  
  14. <Button
  15. android:id="@+id/backbutton"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:text="Back" />
  19.  
  20. <Button
  21. android:id="@+id/backbutton"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:text="next" />
  25. </LinearLayout>
  26. <!-- the two columns part -->
  27.  
  28. <LinearLayout
  29. xmlns:android="http://schemas.android.com/apk/res/android"
  30. android:layout_width="fill_parent"
  31. android:layout_height="fill_parent"
  32. android:layout_weight="0.80"
  33. android:orientation="horizontal" >
  34.  
  35. <LinearLayout
  36. xmlns:android="http://schemas.android.com/apk/res/android"
  37. android:layout_width="fill_parent"
  38. android:layout_height="fill_parent"
  39. android:layout_weight="0.80" >
  40.  
  41. <TextView
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:text="First Name" />
  45. </LinearLayout>
  46.  
  47. <LinearLayout
  48. xmlns:android="http://schemas.android.com/apk/res/android"
  49. android:layout_width="fill_parent"
  50. android:layout_height="fill_parent"
  51. android:layout_weight="0.20" >
  52.  
  53. <TextView
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:text="second Name" />
  57. </LinearLayout>
  58. </LinearLayout>
  59.  
  60. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement