Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <layout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- tools:context=".profile.ProfileSelectorFragment">
- <data>
- <variable
- name="model"
- type="ru.meetap.lova.profile.ProfileSelectorViewModel"/>
- </data>
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_marginTop="24dp"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <FrameLayout
- android:id="@+id/titleBar"
- app:layout_constraintTop_toTopOf="parent"
- android:layout_marginTop="6dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="@dimen/subtitle"
- android:textColor="#ffb4b4"
- android:layout_gravity="center"
- android:text="@{model.title}"
- tools:text="@string/personal_data"/>
- <TextView
- android:id="@+id/buttonDone"
- android:background="?selectableItemBackground"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end|center_vertical"
- android:textSize="@dimen/action_text"
- android:layout_marginTop="@dimen/margin_action"
- android:padding="16dp"
- android:textColor="#fff"
- android:gravity="end"
- android:text="@string/button_done"/>
- </FrameLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler"
- app:layout_constraintTop_toBottomOf="@id/titleBar"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- tools:itemCount="5"
- tools:adapter="@{model.adapter}"
- tools:listitem="@layout/item_selector"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement