Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="1.0">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:text="Valor do Alcool"
- android:layout_weight=".5"
- android:textColor="@android:color/black"
- android:textSize="12sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_weight=".5"
- android:text="Valor da Gasolina"
- android:textSize="12sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="1.0">
- <EditText
- android:id="@+id/txtAlcool"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight=".5"
- android:inputType="numberDecimal"
- android:maxLength="7"
- android:textSize="20sp" />
- <EditText
- android:id="@+id/txtGasolina"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight=".5"
- android:inputType="numberDecimal"
- android:maxLength="4"
- android:textSize="20sp" />
- </LinearLayout>
- <Button
- android:id="@+id/btnCalcular"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dp"
- android:text="Enviar" />
- <TextView
- android:id="@+id/tvResultado"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="1.0">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:text="Valor do Alcool"
- android:layout_weight=".5"
- android:textColor="@android:color/black"
- android:textSize="12sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_weight=".5"
- android:text="Valor da Gasolina"
- android:textSize="12sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="1.0">
- <EditText
- android:id="@+id/txtAlcool"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight=".5"
- android:inputType="numberDecimal"
- android:maxLength="7"
- android:textSize="20sp" />
- <EditText
- android:id="@+id/txtGasolina"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight=".5"
- android:inputType="numberDecimal"
- android:maxLength="4"
- android:textSize="20sp" />
- </LinearLayout>
- <Button
- android:id="@+id/btnCalcular"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dp"
- android:text="Enviar" />
- <TextView
- android:id="@+id/tvResultado"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="" />
- </LinearLayout>
Add Comment
Please, Sign In to add comment