Advertisement
Shishu

xmlfile for random nu8mber

Dec 20th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.11 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:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    tools:context=".MainActivity">
  9.  
  10.     <LinearLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:orientation="horizontal">
  14.  
  15.         <TextView
  16.            android:layout_width="wrap_content"
  17.            android:layout_height="wrap_content"
  18.            android:text="Input Number"
  19.            android:gravity="center" />
  20.  
  21.         <EditText
  22.            android:id="@+id/num"
  23.            android:layout_width="match_parent"
  24.            android:layout_height="wrap_content"/>
  25.     </LinearLayout>
  26.  
  27.     <Button
  28.        android:id="@+id/sub"
  29.        android:layout_width="match_parent"
  30.        android:layout_height="wrap_content"
  31.        android:gravity="center"
  32.        android:text="Check Number"/>
  33.  
  34. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement