Advertisement
Guest User

activity_main.xml

a guest
Oct 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.07 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    android:layout_width="match_parent"
  3.    android:layout_height="match_parent"
  4.    android:orientation="vertical">
  5.  
  6.  
  7.     <LinearLayout
  8.        android:layout_width="match_parent"
  9.        android:layout_height="match_parent"
  10.        android:orientation="vertical"
  11.        android:layout_weight="1">
  12.  
  13.         <ImageView
  14.            android:layout_width="match_parent"
  15.            android:layout_height="match_parent"
  16.            android:src="@drawable/task"/>
  17.     </LinearLayout>
  18.  
  19.  
  20.     <LinearLayout
  21.        android:layout_width="match_parent"
  22.        android:layout_height="match_parent"
  23.        android:layout_weight="1"
  24.        android:orientation="vertical">
  25.  
  26.         <EditText
  27.            android:id="@+id/userLogin"
  28.            android:layout_width="match_parent"
  29.            android:layout_height="wrap_content"
  30.            android:layout_marginTop="20dp"
  31.            android:hint="Please insert your user name:"/>
  32.  
  33.         <EditText
  34.            android:id="@+id/userPass"
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content"
  37.            android:layout_marginTop="20dp"
  38.            android:hint="Please insert your password:"
  39.            android:inputType="textPassword"/>
  40.     </LinearLayout>
  41.  
  42.     <LinearLayout
  43.        android:layout_width="match_parent"
  44.        android:layout_height="match_parent"
  45.        android:orientation="horizontal"
  46.        android:layout_weight="1">
  47.  
  48.         <Button
  49.            android:id="@+id/btnLogin"
  50.            android:layout_width="match_parent"
  51.            android:layout_height="wrap_content"
  52.            android:layout_margin="20dp"
  53.            android:layout_weight="1"
  54.            android:background="#009fff"
  55.            android:onClick="onClick"
  56.            android:text="Login"
  57.            android:textColor="#ffffff"
  58.            android:textSize="22sp"/>
  59.         <Button
  60.            android:id="@+id/btnRegister"
  61.            android:layout_width="match_parent"
  62.            android:layout_height="wrap_content"
  63.            android:layout_margin="20dp"
  64.            android:layout_weight="1"
  65.            android:background="#009fff"
  66.            android:onClick="onClick"
  67.            android:text="Register"
  68.            android:textColor="#ffffff"
  69.            android:textSize="22sp"/>
  70.     </LinearLayout>
  71.  
  72.     <LinearLayout
  73.        android:layout_width="match_parent"
  74.        android:layout_height="match_parent"
  75.        android:layout_weight="1"
  76.        android:orientation="vertical">
  77.  
  78.         <TextView
  79.            android:layout_width="match_parent"
  80.            android:layout_height="wrap_content"
  81.            android:textSize="18dp"
  82.            android:text="Do not try to remember all your tasks..
  83.          just write them here!"
  84.            android:gravity="center"
  85.            android:textStyle="italic"
  86.            android:textColor="#ffffff"
  87.            android:background="#009fff"/>
  88.     </LinearLayout>
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement