Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="16dp"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageView"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_gravity="center"
- android:layout_weight="4"
- android:visibility="invisible"
- app:srcCompat="@android:drawable/btn_star_big_on" />
- <TextView
- android:id="@+id/tvBmi"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:gravity="center"
- android:text=""
- android:textSize="28sp"
- android:textStyle="bold" />
- <EditText
- android:id="@+id/etWeight"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:ems="10"
- android:hint=" Weight (kg)"
- android:inputType="numberDecimal"
- android:textSize="24sp" />
- <EditText
- android:id="@+id/etHeight"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Height (m)"
- android:inputType="numberDecimal"
- android:textSize="24sp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <Button
- android:id="@+id/btnCalculate"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:onClick="calaculate"
- android:text="Calculte" />
- <Button
- android:id="@+id/button2"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:onClick="exit"
- android:text="Exit" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement