Advertisement
Roctik

Untitled

Dec 22nd, 2020
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout
  3.        xmlns:android="http://schemas.android.com/apk/res/android"
  4.        xmlns:app="http://schemas.android.com/apk/res-auto"
  5.        xmlns:tools="http://schemas.android.com/tools"
  6.        tools:context=".profile.ProfileSelectorFragment">
  7.  
  8.     <data>
  9.  
  10.         <variable
  11.                name="model"
  12.                type="ru.meetap.lova.profile.ProfileSelectorViewModel"/>
  13.     </data>
  14.  
  15.  
  16.     <androidx.constraintlayout.widget.ConstraintLayout
  17.            android:layout_marginTop="24dp"
  18.            android:layout_width="match_parent"
  19.            android:layout_height="match_parent">
  20.  
  21.         <FrameLayout
  22.                android:id="@+id/titleBar"
  23.                app:layout_constraintTop_toTopOf="parent"
  24.                android:layout_marginTop="6dp"
  25.                android:layout_width="match_parent"
  26.                android:layout_height="wrap_content">
  27.  
  28.             <TextView
  29.                    android:id="@+id/title"
  30.                    android:layout_width="wrap_content"
  31.                    android:layout_height="wrap_content"
  32.                    android:textSize="@dimen/subtitle"
  33.                    android:textColor="#ffb4b4"
  34.                    android:layout_gravity="center"
  35.                    android:text="@{model.title}"
  36.                    tools:text="@string/personal_data"/>
  37.  
  38.             <TextView
  39.                    android:id="@+id/buttonDone"
  40.                    android:background="?selectableItemBackground"
  41.                    android:layout_width="wrap_content"
  42.                    android:layout_height="wrap_content"
  43.                    android:layout_gravity="end|center_vertical"
  44.                    android:textSize="@dimen/action_text"
  45.                    android:layout_marginTop="@dimen/margin_action"
  46.                    android:padding="16dp"
  47.                    android:textColor="#fff"
  48.                    android:gravity="end"
  49.                    android:text="@string/button_done"/>
  50.         </FrameLayout>
  51.  
  52.         <androidx.recyclerview.widget.RecyclerView
  53.                android:id="@+id/recycler"
  54.                app:layout_constraintTop_toBottomOf="@id/titleBar"
  55.                app:layout_constraintBottom_toBottomOf="parent"
  56.                app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  57.                android:paddingTop="16dp"
  58.                android:paddingBottom="16dp"
  59.                tools:itemCount="5"
  60.                tools:adapter="@{model.adapter}"
  61.                tools:listitem="@layout/item_selector"
  62.                android:layout_width="match_parent"
  63.                android:layout_height="wrap_content"/>
  64.  
  65.     </androidx.constraintlayout.widget.ConstraintLayout>
  66. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement