Guest User

Untitled

a guest
Oct 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 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="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical">
  6.  
  7. <TableLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_weight="1"
  11. android:stretchColumns="*">
  12.  
  13. <TableRow
  14. android:layout_height="0dp" <!-- ключ к распределению строк по высоте -->
  15. android:layout_weight="1" >
  16. <!-- кнопки -->
  17. <Button>
  18.  
  19. </Button>
  20. </TableRow>
  21. <!-- blah-blah -->
  22. </TableLayout>
  23. </LinearLayout>
  24.  
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="0dp"
  28. android:layout_weight="1"
  29. android:orientation="horizontal"
  30. android:weightSum="4">
  31.  
  32. <Button
  33. android:layout_width="0dp"
  34. android:layout_height="match_parent"
  35. android:layout_weight="1"
  36. android:text="1" />
  37.  
  38. <Button
  39. android:layout_width="0dp"
  40. android:layout_height="match_parent"
  41. android:layout_weight="1"
  42. android:text="1" />
  43.  
  44. <Button
  45. android:layout_width="0dp"
  46. android:layout_height="match_parent"
  47. android:layout_weight="1"
  48. android:text="1" />
  49.  
  50. <Button
  51. android:layout_width="0dp"
  52. android:layout_height="match_parent"
  53. android:layout_weight="1"
  54. android:text="1" />
  55. </LinearLayout>
  56.  
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="0dp"
  60. android:layout_weight="1"
  61. android:orientation="horizontal"
  62. android:weightSum="4">
  63.  
  64. <Button
  65. android:layout_width="0dp"
  66. android:layout_height="match_parent"
  67. android:layout_weight="1"
  68. android:text="1" />
  69.  
  70. <Button
  71. android:layout_width="0dp"
  72. android:layout_height="match_parent"
  73. android:layout_weight="1"
  74. android:text="1" />
  75.  
  76. <Button
  77. android:layout_width="0dp"
  78. android:layout_height="match_parent"
  79. android:layout_weight="1"
  80. android:text="1" />
  81.  
  82. <Button
  83. android:layout_width="0dp"
  84. android:layout_height="match_parent"
  85. android:layout_weight="1"
  86. android:text="1" />
  87. </LinearLayout>
  88.  
  89. <LinearLayout
  90. android:layout_width="match_parent"
  91. android:layout_height="0dp"
  92. android:layout_weight="1"
  93. android:orientation="horizontal"
  94. android:weightSum="4">
  95.  
  96. <Button
  97. android:layout_width="0dp"
  98. android:layout_height="match_parent"
  99. android:layout_weight="1"
  100. android:text="1" />
  101.  
  102. <Button
  103. android:layout_width="0dp"
  104. android:layout_height="match_parent"
  105. android:layout_weight="1"
  106. android:text="1" />
  107.  
  108. <Button
  109. android:layout_width="0dp"
  110. android:layout_height="match_parent"
  111. android:layout_weight="1"
  112. android:text="1" />
  113.  
  114. <Button
  115. android:layout_width="0dp"
  116. android:layout_height="match_parent"
  117. android:layout_weight="1"
  118. android:text="1" />
  119. </LinearLayout>
  120.  
  121. <LinearLayout
  122. android:layout_width="match_parent"
  123. android:layout_height="0dp"
  124. android:layout_weight="1"
  125. android:orientation="horizontal"
  126. android:weightSum="4">
  127.  
  128. <Button
  129. android:layout_width="0dp"
  130. android:layout_height="match_parent"
  131. android:layout_weight="1"
  132. android:text="1" />
  133.  
  134. <View
  135. android:visibility="invisible"
  136. android:layout_width="0dp"
  137. android:layout_height="match_parent"
  138. android:layout_weight="3"/>
  139. </LinearLayout>
Add Comment
Please, Sign In to add comment