Goodiny777

activity_main.xml

Mar 27th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.45 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.     <LinearLayout
  7.        android:layout_width="match_parent"
  8.        android:layout_height="match_parent"
  9.        android:layout_weight="1"
  10.        android:orientation="vertical">
  11.  
  12.         <ImageView
  13.            android:layout_width="match_parent"
  14.            android:layout_height="match_parent"
  15.            android:src="@drawable/header_background" />
  16.     </LinearLayout>
  17.  
  18.     <LinearLayout
  19.        android:layout_width="match_parent"
  20.        android:layout_height="match_parent"
  21.        android:layout_marginLeft="16dp"
  22.        android:layout_marginRight="16dp"
  23.        android:layout_weight="1"
  24.        android:gravity="center"
  25.        android:orientation="vertical">
  26.  
  27.         <EditText
  28.            android:id="@+id/txt_login"
  29.            android:layout_width="match_parent"
  30.            android:layout_height="wrap_content"
  31.            android:layout_weight="1"
  32.            android:inputType="textEmailAddress"
  33.            android:hint="@string/login" />
  34.  
  35.         <EditText
  36.            android:id="@+id/txt_password"
  37.            android:layout_width="match_parent"
  38.            android:layout_height="wrap_content"
  39.            android:layout_weight="1"
  40.            android:hint="@string/password"
  41.            android:inputType="textPassword" />
  42.  
  43.     </LinearLayout>
  44.  
  45.     <LinearLayout
  46.        android:layout_width="match_parent"
  47.        android:layout_height="match_parent"
  48.        android:layout_marginLeft="16dp"
  49.        android:layout_marginRight="16dp"
  50.        android:layout_weight="1"
  51.        android:orientation="vertical">
  52.  
  53.         <LinearLayout
  54.            android:layout_width="match_parent"
  55.            android:layout_height="match_parent"
  56.            android:layout_weight="1"
  57.            android:orientation="horizontal">
  58.  
  59.             <Button
  60.                android:id="@+id/btn_register"
  61.                android:layout_width="match_parent"
  62.                android:layout_height="wrap_content"
  63.                android:layout_weight="1"
  64.                android:text="@string/txt_btn_register"
  65.                android:textSize="16sp" />
  66.  
  67.             <Button
  68.                android:id="@+id/btn_login"
  69.                android:layout_width="match_parent"
  70.                android:layout_height="wrap_content"
  71.                android:layout_weight="1"
  72.                android:onClick="btnLogin"
  73.                android:text="@string/txt_btn_login"
  74.                android:textSize="16sp" />
  75.         </LinearLayout>
  76.  
  77.         <LinearLayout
  78.            android:layout_width="match_parent"
  79.            android:layout_height="1dp"
  80.            android:background="#494949" />
  81.  
  82.         <LinearLayout
  83.            android:layout_width="match_parent"
  84.            android:layout_height="match_parent"
  85.            android:layout_margin="16dp"
  86.            android:layout_weight="1"
  87.            android:orientation="horizontal">
  88.  
  89.             <Button
  90.                android:id="@+id/btnHebr"
  91.                android:layout_width="match_parent"
  92.                android:layout_height="wrap_content"
  93.                android:layout_weight="1"
  94.                android:text="@string/hebr"
  95.                android:textSize="12sp"
  96.                android:onClick="onClick"/>
  97.  
  98.             <Button
  99.                android:id="@+id/btnEng"
  100.                android:layout_width="match_parent"
  101.                android:layout_height="wrap_content"
  102.                android:layout_weight="1"
  103.                android:text="@string/eng"
  104.                android:textSize="12sp"
  105.                android:onClick="onClick"/>
  106.  
  107.             <Button
  108.                android:id="@+id/btnRus"
  109.                android:layout_width="match_parent"
  110.                android:layout_height="wrap_content"
  111.                android:layout_weight="1"
  112.                android:text="@string/rus"
  113.                android:textSize="12sp"
  114.                android:onClick="onClick"/>
  115.  
  116.             <Button
  117.                android:id="@+id/btnArb"
  118.                android:layout_width="match_parent"
  119.                android:layout_height="wrap_content"
  120.                android:layout_weight="1"
  121.                android:text="@string/arb"
  122.                android:textSize="12sp"
  123.                android:onClick="onClick"/>
  124.  
  125.         </LinearLayout>
  126.  
  127.     </LinearLayout>
  128.  
  129.  
  130. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment