Advertisement
Guest User

activity_main.xml

a guest
Mar 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent">
  5.  
  6.     <EditText
  7.        android:id="@+id/editText_main"
  8.        android:layout_width="wrap_content"
  9.        android:layout_height="wrap_content"
  10.        android:hint="@string/enter"
  11.        android:inputType="phone"/>
  12.  
  13.     <Spinner
  14.        android:id="@+id/label_spinner"
  15.        android:layout_width="wrap_content"
  16.        android:layout_height="wrap_content">
  17.     </Spinner>
  18.  
  19.     <Button
  20.        android:id="@+id/button_main"
  21.        android:layout_width="wrap_content"
  22.        android:layout_height="wrap_content"
  23.        android:onClick="showText"
  24.        android:text="@string/show"  />
  25.  
  26.     <LinearLayout
  27.        android:layout_width="wrap_content"
  28.        android:layout_height="wrap_content"
  29.        android:orientation="horizontal"
  30.        android:layout_alignParentBottom="true">
  31.  
  32.         <TextView
  33.            android:id="@+id/title_phonelabel"
  34.            android:layout_width="wrap_content"
  35.            android:layout_height="wrap_content"
  36.            android:text="Phone Number: " />
  37.  
  38.         <TextView
  39.            android:id="@+id/text_phonelabel"
  40.            android:layout_width="wrap_content"
  41.            android:layout_height="wrap_content"
  42.            android:text="Nothing entered." />
  43.     </LinearLayout>
  44.  
  45. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement