Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:id="@+id/activity_main"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context="semos.edu.mk.miloshevski.layout.MainActivity">
  8.  
  9.  
  10.     <RelativeLayout
  11.        android:id="@+id/lyt_user"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:layout_marginLeft="20dp"
  15.        android:layout_marginRight="20dp">
  16.  
  17.         <TextView
  18.            android:id="@+id/tv_Pass"
  19.            android:layout_width="wrap_content"
  20.            android:layout_height="wrap_content"
  21.            android:layout_centerVertical="true"
  22.            android:text="Name:" />
  23.  
  24.         <EditText
  25.            android:layout_width="match_parent"
  26.            android:layout_height="wrap_content"
  27.            android:layout_toEndOf="@+id/tv_Pass"
  28.            android:hint="Username:" />
  29.     </RelativeLayout>
  30.  
  31.     <RelativeLayout
  32.        android:id="@+id/lyt_pass"
  33.        android:layout_width="match_parent"
  34.        android:layout_height="wrap_content"
  35.        android:layout_below="@+id/lyt_user"
  36.        android:layout_marginLeft="20dp"
  37.        android:layout_marginRight="20dp">
  38.  
  39.         <TextView
  40.            android:id="@+id/tv_Pass"
  41.            android:layout_width="wrap_content"
  42.            android:layout_height="wrap_content"
  43.            android:layout_centerVertical="true"
  44.            android:text="Password:" />
  45.  
  46.         <EditText
  47.            android:layout_width="match_parent"
  48.            android:layout_height="wrap_content"
  49.            android:layout_toEndOf="@+id/tv_Pass"
  50.            android:hint="Password:"
  51.            android:inputType="textPassword" />
  52.     </RelativeLayout>
  53.  
  54.     <Button
  55.        android:id="@+id/bt_ok"
  56.        android:layout_width="match_parent"
  57.        android:layout_height="wrap_content"
  58.        android:layout_below="@id/lyt_pass"
  59.        android:layout_marginLeft="20dp"
  60.        android:layout_marginRight="20dp"
  61.        android:background="#000"
  62.        android:text="OK"
  63.        android:textColor="#fff" />
  64.  
  65.     <RadioGroup
  66.        android:id="@+id/rg_group"
  67.        android:layout_width="wrap_content"
  68.        android:layout_height="wrap_content"
  69.        android:layout_below="@+id/bt_ok"
  70.        android:layout_marginLeft="20dp"
  71.        android:layout_marginRight="20dp"
  72.        android:orientation="horizontal">
  73.  
  74.         <RadioButton
  75.            android:layout_width="wrap_content"
  76.            android:layout_height="wrap_content"
  77.            android:text="Item1" />
  78.  
  79.         <RadioButton
  80.            android:layout_width="wrap_content"
  81.            android:layout_height="wrap_content"
  82.            android:text="Item2" />
  83.  
  84.         <RadioButton
  85.            android:layout_width="wrap_content"
  86.            android:layout_height="wrap_content"
  87.            android:text="Item3" />
  88.     </RadioGroup>
  89.  
  90.     <LinearLayout
  91.        android:layout_width="match_parent"
  92.        android:layout_height="wrap_content"
  93.        android:layout_below="@+id/rg_group"
  94.        android:orientation="horizontal"
  95.        android:layout_marginLeft="20dp"
  96.        android:layout_marginRight="20dp">
  97.  
  98.         <Button
  99.            android:layout_width="wrap_content"
  100.            android:layout_height="wrap_content"
  101.            android:layout_weight="1"
  102.            android:text="Button1"
  103.            android:textAllCaps="false"
  104.            android:background="#129793"
  105.            android:id="@+id/button" />
  106.  
  107.         <Button
  108.            android:layout_width="wrap_content"
  109.            android:layout_height="wrap_content"
  110.            android:layout_weight="1"
  111.            android:textAllCaps="false"
  112.            android:text="Button2" />
  113.  
  114.         <Button
  115.            android:layout_width="wrap_content"
  116.            android:layout_height="wrap_content"
  117.            android:layout_weight="1"
  118.            android:textAllCaps="false"
  119.            android:text="Button3" />
  120.     </LinearLayout>
  121. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement