Adding handle at top

This commit is contained in:
Maxime NATUREL 2022-09-12 17:29:16 +02:00
parent 97cdda45d6
commit 400b1b0697

View file

@ -1,57 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout 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"
android:id="@+id/bottomSheetScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:layout_height="wrap_content"
android:background="?colorSurface"
android:fadeScrollbars="false"
android:scrollbars="vertical">
android:paddingHorizontal="24dp"
android:paddingTop="8dp"
android:paddingBottom="16dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
<View
android:id="@+id/bottomSheetSessionLearnMoreHandle"
android:layout_width="36dp"
android:layout_height="6dp"
android:background="@drawable/ic_bottom_sheet_handle"
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreTitle"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/bottomSheetSessionLearnMoreTitle"
style="@style/TextAppearance.Vector.Subtitle.Medium.DevicesManagement"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingHorizontal="24dp"
android:paddingVertical="16dp">
android:layout_marginTop="20dp"
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreDescription"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreHandle"
tools:text="Verified sessions" />
<TextView
android:id="@+id/bottomSheetSessionLearnMoreTitle"
style="@style/TextAppearance.Vector.Subtitle.Medium.DevicesManagement"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreDescription"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Verified sessions" />
<TextView
android:id="@+id/bottomSheetSessionLearnMoreDescription"
style="@style/TextAppearance.Vector.Body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreCloseButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreTitle"
tools:text="Further context on verified sessions. What do those mean, and how do they differ from unverified ones." />
<TextView
android:id="@+id/bottomSheetSessionLearnMoreDescription"
style="@style/TextAppearance.Vector.Body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreCloseButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreTitle"
tools:text="Further context on verified sessions. What do those mean, and how do they differ from unverified ones." />
<Button
android:id="@+id/bottomSheetSessionLearnMoreCloseButton"
style="@style/Widget.Vector.Button.CallToAction"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginTop="24dp"
android:text="@string/action_got_it"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreDescription" />
<Button
android:id="@+id/bottomSheetSessionLearnMoreCloseButton"
style="@style/Widget.Vector.Button.CallToAction"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginTop="24dp"
android:text="@string/action_got_it"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreDescription" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>