Advertisement
OoryaK

Call Log / Oorya

May 25th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.14 KB | None | 0 0
  1. //*************************ACTIVITY_LAYOUT
  2. <LinearLayout
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:orientation="vertical"
  6.    xmlns:android="http://schemas.android.com/apk/res/android"
  7.    android:gravity="center">
  8.  
  9.  
  10.     <RelativeLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent"
  13.        android:layout_weight="1"
  14.        android:orientation="vertical"
  15.        android:id="@+id/mid"
  16.        android:gravity="center"
  17.        android:weightSum="1">
  18.  
  19.         <EditText
  20.            android:layout_width="match_parent"
  21.            android:layout_height="wrap_content"
  22.            android:hint="Owner"
  23.            android:textSize="24sp"
  24.            android:inputType="text"
  25.            android:id="@+id/owner"/>
  26.  
  27.         <EditText
  28.            android:layout_width="match_parent"
  29.            android:layout_height="wrap_content"
  30.            android:hint="Line number"
  31.            android:textSize="24sp"
  32.            android:id="@+id/lineNumber"
  33.            android:layout_below="@+id/owner"/>
  34.  
  35.         <EditText
  36.            android:layout_width="match_parent"
  37.            android:layout_height="wrap_content"
  38.            android:hint="Last pay"
  39.            android:textSize="24sp"
  40.            android:inputType="number"
  41.            android:id="@+id/lastPay"
  42.            android:layout_below="@+id/lineNumber"/>
  43.     </RelativeLayout>
  44.  
  45.     <LinearLayout
  46.        android:layout_width="match_parent"
  47.        android:layout_height="match_parent"
  48.        android:layout_weight="1"
  49.        android:orientation="vertical"
  50.        android:gravity="center">
  51.  
  52.         <Button
  53.            android:layout_width="wrap_content"
  54.            android:layout_height="wrap_content"
  55.            android:text="Add data"
  56.            android:textSize="30dp"
  57.            android:onClick="btnAddData"/>
  58.  
  59.         <Button
  60.            android:layout_width="wrap_content"
  61.            android:layout_height="wrap_content"
  62.            android:text="Data Display"
  63.            android:textSize="30dp"
  64.            android:onClick="btnDisplay"/>
  65.  
  66.         <Button
  67.            android:layout_width="wrap_content"
  68.            android:layout_height="wrap_content"
  69.            android:text="Clear data"
  70.            android:textSize="30dp"
  71.            android:onClick="btnClear"/>
  72.     </LinearLayout>
  73.  
  74. </LinearLayout>
  75.  
  76. //***************************ACTIVITY_DISPLAY
  77. <LinearLayout
  78.    android:layout_width="match_parent"
  79.    android:layout_height="match_parent"
  80.    android:orientation="vertical"
  81.    xmlns:android="http://schemas.android.com/apk/res/android" >
  82.  
  83.     <LinearLayout
  84.        android:layout_width="match_parent"
  85.        android:layout_height="match_parent"
  86.        android:orientation="vertical"
  87.        android:layout_weight="4">
  88.         <TextView
  89.            android:gravity="center"
  90.            android:layout_width="match_parent"
  91.            android:layout_height="match_parent"
  92.            android:textSize="40dp"
  93.            android:id="@+id/text"/>
  94.     </LinearLayout>
  95.  
  96.  
  97.     <LinearLayout
  98.        android:id="@+id/linearMid"
  99.        android:layout_width="match_parent"
  100.        android:layout_height="match_parent"
  101.        android:orientation="vertical"
  102.        android:layout_weight="1">
  103.         <ListView
  104.            android:id="@+id/myListV"
  105.            android:layout_width="match_parent"
  106.            android:layout_height="match_parent">
  107.  
  108.         </ListView>
  109.  
  110.     </LinearLayout>
  111.  
  112.     <RelativeLayout
  113.        android:layout_width="match_parent"
  114.        android:layout_height="match_parent"
  115.        android:orientation="horizontal"
  116.        android:layout_weight="4">
  117.         <TextView
  118.            android:layout_width="wrap_content"
  119.            android:layout_height="wrap_content"
  120.            android:textSize="25dp"
  121.            android:id="@+id/sumPay"/>
  122.  
  123.         <TextView
  124.            android:layout_width="wrap_content"
  125.            android:layout_height="wrap_content"
  126.            android:textSize="25dp"
  127.            android:id="@+id/sumCall"
  128.            android:layout_below="@+id/sumPay"/>
  129.  
  130.     </RelativeLayout>
  131.  
  132. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement