Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*************************ACTIVITY_LAYOUT
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:gravity="center">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical"
- android:id="@+id/mid"
- android:gravity="center"
- android:weightSum="1">
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Owner"
- android:textSize="24sp"
- android:inputType="text"
- android:id="@+id/owner"/>
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Line number"
- android:textSize="24sp"
- android:id="@+id/lineNumber"
- android:layout_below="@+id/owner"/>
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Last pay"
- android:textSize="24sp"
- android:inputType="number"
- android:id="@+id/lastPay"
- android:layout_below="@+id/lineNumber"/>
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical"
- android:gravity="center">
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Add data"
- android:textSize="30dp"
- android:onClick="btnAddData"/>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Data Display"
- android:textSize="30dp"
- android:onClick="btnDisplay"/>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Clear data"
- android:textSize="30dp"
- android:onClick="btnClear"/>
- </LinearLayout>
- </LinearLayout>
- //***************************ACTIVITY_DISPLAY
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- xmlns:android="http://schemas.android.com/apk/res/android" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:layout_weight="4">
- <TextView
- android:gravity="center"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:textSize="40dp"
- android:id="@+id/text"/>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/linearMid"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:layout_weight="1">
- <ListView
- android:id="@+id/myListV"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- </ListView>
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:layout_weight="4">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="25dp"
- android:id="@+id/sumPay"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="25dp"
- android:id="@+id/sumCall"
- android:layout_below="@+id/sumPay"/>
- </RelativeLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement