2018-10-29 16:48:31 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-01-16 18:25:43 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-29 16:48:31 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-05-15 17:44:06 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-10-29 16:48:31 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-05-16 17:14:02 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true">
|
2018-10-29 16:48:31 +00:00
|
|
|
|
2019-05-15 17:44:06 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/homeDrawerHeader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/homeDrawerHeaderAvatarView"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginLeft="@dimen/layout_horizontal_margin"
|
2019-05-15 17:44:06 +00:00
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/homeDrawerUsernameView"
|
2019-05-29 10:21:45 +00:00
|
|
|
android:layout_width="0dp"
|
2019-05-15 17:44:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:layout_marginTop="24dp"
|
2019-05-29 10:21:45 +00:00
|
|
|
android:maxLines="1"
|
|
|
|
android:singleLine="true"
|
2019-05-15 17:44:06 +00:00
|
|
|
android:textColor="@android:color/white"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:textSize="15sp"
|
2019-05-29 10:21:45 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/homeDrawerHeaderSettingsView"
|
2019-05-15 17:44:06 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/homeDrawerHeaderAvatarView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/homeDrawerHeaderAvatarView"
|
2019-05-29 08:21:02 +00:00
|
|
|
tools:text="@sample/matrix.json/data/displayName" />
|
2019-05-15 17:44:06 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/homeDrawerUserIdView"
|
2019-05-29 10:21:45 +00:00
|
|
|
android:layout_width="0dp"
|
2019-05-15 17:44:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:layout_marginBottom="17dp"
|
2019-05-29 10:21:45 +00:00
|
|
|
android:maxLines="1"
|
|
|
|
android:singleLine="true"
|
2019-05-15 17:44:06 +00:00
|
|
|
android:textColor="@android:color/white"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:textSize="15sp"
|
2019-05-15 17:44:06 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-29 10:21:45 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/homeDrawerHeaderSettingsView"
|
2019-05-29 08:21:02 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/homeDrawerHeaderAvatarView"
|
2019-05-15 17:44:06 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/homeDrawerUsernameView"
|
2019-05-29 08:21:02 +00:00
|
|
|
tools:text="@sample/matrix.json/data/mxid" />
|
2019-05-15 17:44:06 +00:00
|
|
|
|
2019-05-16 17:14:02 +00:00
|
|
|
<ImageView
|
2019-05-15 17:44:06 +00:00
|
|
|
android:id="@+id/homeDrawerHeaderSettingsView"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-16 17:14:02 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2019-05-29 12:19:40 +00:00
|
|
|
android:padding="16dp"
|
2019-05-29 10:21:45 +00:00
|
|
|
android:src="@drawable/ic_settings_x"
|
2019-05-29 08:21:02 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
2019-05-15 17:44:06 +00:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-10-29 16:48:31 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2019-05-15 17:44:06 +00:00
|
|
|
android:id="@+id/homeDrawerGroupListContainer"
|
2018-10-29 16:48:31 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-05-29 08:21:02 +00:00
|
|
|
android:background="#FAFAFA"
|
2018-10-29 16:48:31 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-15 17:44:06 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/homeDrawerHeader" />
|
2018-10-29 16:48:31 +00:00
|
|
|
|
2019-01-16 18:25:43 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|