Advertisement
chayanforyou

Top Sheet Dialog

Apr 21st, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.78 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.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     android:background="@color/colorWhite"
  7.     android:orientation="vertical"
  8.     android:padding="16dp">
  9.  
  10.     <!-- NOTE: This list should be displayed in a list
  11.     instead of nested layouts -->
  12.  
  13.     <LinearLayout
  14.         android:layout_width="match_parent"
  15.         android:layout_height="wrap_content"
  16.         android:layout_marginTop="6dp"
  17.         android:layout_marginBottom="6dp">
  18.  
  19.         <ImageView
  20.             android:id="@+id/icon_userName"
  21.             android:layout_width="24dp"
  22.             android:layout_height="24dp"
  23.             android:layout_gravity="center"
  24.             android:layout_marginStart="8dp"
  25.             android:background="@drawable/ic_search"
  26.             app:backgroundTint="@color/cardview_dark_background" />
  27.  
  28.         <EditText
  29.             android:id="@+id/edt_search"
  30.             android:layout_width="match_parent"
  31.             android:layout_height="wrap_content"
  32.             android:background="@null"
  33.             android:hint="@string/search_hint"
  34.             android:imeOptions="actionSearch"
  35.             android:padding="10dp"
  36.             android:singleLine="true"
  37.             android:textColor="@color/input_login"
  38.             android:textColorHint="@color/input_login_hint"
  39.             android:textSize="15sp"
  40.             android:inputType="textCapSentences" />
  41.  
  42.     </LinearLayout>
  43.  
  44.     <View
  45.         android:layout_width="match_parent"
  46.         android:layout_height="0.5dp"
  47.         android:background="@android:color/darker_gray" />
  48.  
  49.     <TextView
  50.         android:layout_width="wrap_content"
  51.         android:layout_height="wrap_content"
  52.         android:layout_marginTop="16dp"
  53.         android:text="Tutor Background:" />
  54.  
  55.     <LinearLayout
  56.         android:layout_width="match_parent"
  57.         android:layout_height="wrap_content"
  58.         android:layout_marginTop="12dp"
  59.         android:layout_marginBottom="16dp"
  60.         android:orientation="vertical">
  61.  
  62.         <RadioGroup
  63.             android:id="@+id/holderRadioGroup"
  64.             android:layout_width="match_parent"
  65.             android:layout_height="wrap_content"
  66.             android:orientation="horizontal">
  67.  
  68.             <RadioButton
  69.                 android:id="@+id/rb_science"
  70.                 android:layout_width="0dp"
  71.                 android:layout_height="wrap_content"
  72.                 android:layout_weight="1"
  73.                 android:checked="true"
  74.                 android:text="Science"
  75.                 android:textColor="@android:color/black" />
  76.  
  77.             <RadioButton
  78.                 android:id="@+id/rb_commerce"
  79.                 android:layout_width="0dp"
  80.                 android:layout_height="wrap_content"
  81.                 android:layout_weight="1"
  82.                 android:checked="false"
  83.                 android:text="Commerce"
  84.                 android:textColor="@android:color/black" />
  85.  
  86.             <RadioButton
  87.                 android:id="@+id/rd_arts"
  88.                 android:layout_width="0dp"
  89.                 android:layout_height="wrap_content"
  90.                 android:layout_weight="1"
  91.                 android:checked="false"
  92.                 android:text="Arts"
  93.                 android:textColor="@android:color/black" />
  94.         </RadioGroup>
  95.  
  96.     </LinearLayout>
  97.  
  98.     <Button
  99.         android:id="@+id/btn_search"
  100.         style="@style/Widget.AppCompat.Button.Borderless.Colored"
  101.         android:layout_width="wrap_content"
  102.         android:layout_height="wrap_content"
  103.         android:layout_gravity="end"
  104.         android:text="Search"
  105.         android:textAllCaps="false" />
  106.  
  107. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement