Guest User

Untitled

a guest
Jun 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. <LinearLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="wrap_content"
  4. android:orientation="horizontal"
  5. android:weightSum="1.0">
  6. <TextView
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:layout_marginTop="10dp"
  10. android:text="Valor do Alcool"
  11. android:layout_weight=".5"
  12. android:textColor="@android:color/black"
  13. android:textSize="12sp" />
  14. <TextView
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="10dp"
  18. android:layout_weight=".5"
  19. android:text="Valor da Gasolina"
  20. android:textSize="12sp" />
  21. </LinearLayout>
  22. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:orientation="horizontal"
  26. android:weightSum="1.0">
  27. <EditText
  28. android:id="@+id/txtAlcool"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_weight=".5"
  32. android:inputType="numberDecimal"
  33. android:maxLength="7"
  34. android:textSize="20sp" />
  35. <EditText
  36. android:id="@+id/txtGasolina"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_weight=".5"
  40. android:inputType="numberDecimal"
  41. android:maxLength="4"
  42. android:textSize="20sp" />
  43. </LinearLayout>
  44.  
  45. <Button
  46. android:id="@+id/btnCalcular"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:layout_marginBottom="15dp"
  50. android:text="Enviar" />
  51.  
  52. <TextView
  53. android:id="@+id/tvResultado"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:text="" />
  57. </LinearLayout>
  58.  
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:orientation="horizontal"
  63. android:weightSum="1.0">
  64. <TextView
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:layout_marginTop="10dp"
  68. android:text="Valor do Alcool"
  69. android:layout_weight=".5"
  70. android:textColor="@android:color/black"
  71. android:textSize="12sp" />
  72. <TextView
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_marginTop="10dp"
  76. android:layout_weight=".5"
  77. android:text="Valor da Gasolina"
  78. android:textSize="12sp" />
  79. </LinearLayout>
  80. <LinearLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:orientation="horizontal"
  84. android:weightSum="1.0">
  85. <EditText
  86. android:id="@+id/txtAlcool"
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:layout_weight=".5"
  90. android:inputType="numberDecimal"
  91. android:maxLength="7"
  92. android:textSize="20sp" />
  93. <EditText
  94. android:id="@+id/txtGasolina"
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:layout_weight=".5"
  98. android:inputType="numberDecimal"
  99. android:maxLength="4"
  100. android:textSize="20sp" />
  101. </LinearLayout>
  102.  
  103. <Button
  104. android:id="@+id/btnCalcular"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_marginBottom="15dp"
  108. android:text="Enviar" />
  109.  
  110. <TextView
  111. android:id="@+id/tvResultado"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:text="" />
  115. </LinearLayout>
Add Comment
Please, Sign In to add comment