Advertisement
Guest User

janezek678

a guest
Nov 25th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. <LinearLayout 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. android:orientation="vertical"
  6. android:paddingBottom="@dimen/activity_vertical_margin"
  7. android:paddingLeft="16dp"
  8. android:paddingRight="@dimen/activity_horizontal_margin"
  9. android:paddingTop="@dimen/activity_vertical_margin"
  10. tools:context=".MainActivity"
  11. android:weightSum="1">
  12.  
  13.  
  14. <TextView
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:textAppearance="?android:attr/textAppearanceLarge"
  18. android:text="Large Text"
  19. android:id="@+id/textView"
  20. android:layout_weight="1" />
  21.  
  22. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:orientation="horizontal">
  26.  
  27.  
  28. <Button
  29. android:id="@+id/button"
  30. android:layout_width="0dp"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="1"
  33. android:onClick="klik"
  34. android:text="7" />
  35.  
  36. <Button
  37. android:id="@+id/button2"
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:onClick="klik"
  42. android:text="8" />
  43.  
  44. <Button
  45. android:id="@+id/button3"
  46. android:layout_width="0dp"
  47. android:layout_height="wrap_content"
  48. android:layout_weight="1"
  49. android:onClick="klik"
  50. android:text="9" />
  51. </LinearLayout>
  52.  
  53. <LinearLayout
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:orientation="horizontal">
  57.  
  58.  
  59. <Button
  60. android:id="@+id/button4"
  61. android:layout_width="0dp"
  62. android:layout_height="wrap_content"
  63. android:layout_weight="1"
  64. android:onClick="klik"
  65. android:text="4" />
  66.  
  67. <Button
  68. android:id="@+id/button5"
  69. android:layout_width="0dp"
  70. android:layout_height="wrap_content"
  71. android:layout_weight="1"
  72. android:text="5" />
  73.  
  74. <Button
  75. android:id="@+id/button6"
  76. android:layout_width="0dp"
  77. android:layout_height="wrap_content"
  78. android:layout_weight="1"
  79. android:text="6" />
  80. </LinearLayout>
  81.  
  82. <LinearLayout
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:orientation="horizontal">
  86.  
  87.  
  88. <Button
  89. android:id="@+id/button7"
  90. android:layout_width="0dp"
  91. android:layout_height="wrap_content"
  92. android:layout_weight="1"
  93. android:text="1" />
  94.  
  95. <Button
  96. android:id="@+id/button8"
  97. android:layout_width="0dp"
  98. android:layout_height="wrap_content"
  99. android:layout_weight="1"
  100. android:text="2" />
  101.  
  102. <Button
  103. android:id="@+id/button9"
  104. android:layout_width="0dp"
  105. android:layout_height="wrap_content"
  106. android:layout_weight="1"
  107. android:text="3" />
  108. </LinearLayout>
  109.  
  110. <Button
  111.  
  112. android:id="@+id/button10"
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:text="0" />
  116.  
  117.  
  118. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement