BayernMessenger/vector/src/main/res/layout/fragment_home_drawer.xml

81 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-05-15 17:44:06 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:focusable="true">
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
<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"
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>
<FrameLayout
2019-05-15 17:44:06 +00:00
android:id="@+id/homeDrawerGroupListContainer"
android:layout_width="0dp"
android:layout_height="0dp"
2019-05-29 08:21:02 +00:00
android:background="#FAFAFA"
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" />
</androidx.constraintlayout.widget.ConstraintLayout>