Advertisement
sururuzzaman

activity_main.xml

Aug 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:padding="16dp"
  7.    android:orientation="vertical">
  8.  
  9.     <TextView
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:text="@string/length" />
  13.  
  14.     <EditText
  15.        android:id="@+id/edt_length"
  16.        android:layout_width="match_parent"
  17.        android:layout_height="wrap_content"
  18.        android:inputType="numberDecimal"
  19.        android:lines="1" />
  20.  
  21.     <TextView
  22.        android:layout_width="match_parent"
  23.        android:layout_height="wrap_content"
  24.        android:text="@string/width" />
  25.  
  26.     <EditText
  27.        android:id="@+id/edt_width"
  28.        android:layout_width="match_parent"
  29.        android:layout_height="wrap_content"
  30.        android:inputType="numberDecimal"
  31.        android:lines="1" />
  32.  
  33.     <TextView
  34.        android:layout_width="match_parent"
  35.        android:layout_height="wrap_content"
  36.        android:text="@string/height" />
  37.  
  38.     <EditText
  39.        android:id="@+id/edt_height"
  40.        android:layout_width="match_parent"
  41.        android:layout_height="wrap_content"
  42.        android:inputType="numberDecimal"
  43.        android:lines="1" />
  44.  
  45.     <Button
  46.        android:id="@+id/btn_calculate"
  47.        android:layout_width="match_parent"
  48.        android:layout_height="wrap_content"
  49.        android:text="@string/calculate" />
  50.  
  51.     <TextView
  52.        android:id="@+id/tv_result"
  53.        android:layout_width="match_parent"
  54.        android:layout_height="wrap_content"
  55.        android:gravity="center"
  56.        android:text="@string/result"
  57.        android:textSize="24sp"
  58.        android:textStyle="bold" />
  59. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement