Advertisement
hamaXD

LABADV 1 : XML:swapUSDTHB

Aug 22nd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.06 KB | None | 0 0
  1. <!--Android Studio-->
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    tools:context=".MainActivity">
  9.  
  10.     <!--<TextView-->
  11.         <!--android:layout_width="wrap_content"-->
  12.         <!--android:layout_height="wrap_content"-->
  13.         <!--android:text="Hello World!"-->
  14.         <!--app:layout_constraintBottom_toBottomOf="parent"-->
  15.         <!--app:layout_constraintLeft_toLeftOf="parent"-->
  16.         <!--app:layout_constraintRight_toRightOf="parent"-->
  17.         <!--app:layout_constraintTop_toTopOf="parent" />-->
  18.  
  19.     <TableLayout
  20.        android:layout_width="match_parent"
  21.        android:layout_height="match_parent">
  22.  
  23.         <TableRow
  24.            android:layout_width="match_parent"
  25.            android:layout_height="match_parent">
  26.  
  27.             <TextView
  28.                android:id="@+id/textView"
  29.                android:layout_width="wrap_content"
  30.                android:layout_height="wrap_content"
  31.                android:text="USD" />
  32.         </TableRow>
  33.  
  34.         <TableRow
  35.            android:layout_width="match_parent"
  36.            android:layout_height="match_parent">
  37.  
  38.             <EditText
  39.                android:id="@+id/USD"
  40.                android:layout_width="match_parent"
  41.                android:layout_height="wrap_content"
  42.                android:layout_weight="1"
  43.  
  44.                android:ems="10"
  45.                tools:layout_editor_absoluteX="0dp"
  46.                tools:layout_editor_absoluteY="35dp" />
  47.         </TableRow>
  48.  
  49.         <TableRow
  50.            android:layout_width="match_parent"
  51.            android:layout_height="match_parent" >
  52.  
  53.             <TextView
  54.                android:id="@+id/textView3"
  55.                android:layout_width="wrap_content"
  56.                android:layout_height="wrap_content"
  57.                android:text="THB" />
  58.         </TableRow>
  59.  
  60.         <TableRow
  61.            android:layout_width="match_parent"
  62.            android:layout_height="match_parent" >
  63.  
  64.             <EditText
  65.                android:id="@+id/THB"
  66.                android:layout_width="match_parent"
  67.                android:layout_height="wrap_content"
  68.                android:layout_weight="1"
  69.  
  70.                android:ems="10"
  71.                tools:layout_editor_absoluteX="27dp"
  72.                tools:layout_editor_absoluteY="235dp" />
  73.         </TableRow>
  74.  
  75.         <TableRow
  76.            android:layout_width="match_parent"
  77.            android:layout_height="match_parent" >
  78.  
  79.             <Button
  80.                android:id="@+id/submit"
  81.                android:layout_width="match_parent"
  82.                android:layout_height="wrap_content"
  83.  
  84.                android:text="Convert" />
  85.             <Button
  86.                android:id="@+id/clear"
  87.                android:layout_width="match_parent"
  88.                android:layout_height="wrap_content"
  89.  
  90.                android:text="Clear" />
  91.         </TableRow>
  92.         <TableRow
  93.            android:layout_width="match_parent"
  94.            android:layout_height="match_parent">
  95.  
  96.             <TextView
  97.                android:id="@+id/textView5"
  98.                android:layout_width="wrap_content"
  99.                android:layout_height="wrap_content"
  100.                android:text="Result" />
  101.         </TableRow>
  102.         <TableRow
  103.            android:layout_width="match_parent"
  104.            android:layout_height="match_parent" >
  105.  
  106.             <EditText
  107.                android:id="@+id/result"
  108.                android:layout_width="match_parent"
  109.                android:layout_height="wrap_content"
  110.                android:layout_weight="1"
  111.  
  112.                android:ems="10"
  113.                tools:layout_editor_absoluteX="27dp"
  114.                tools:layout_editor_absoluteY="235dp" />
  115.  
  116.         </TableRow>
  117.     </TableLayout>
  118.  
  119. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement