mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Adding handle at top
This commit is contained in:
parent
97cdda45d6
commit
400b1b0697
1 changed files with 49 additions and 47 deletions
|
@ -1,57 +1,59 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/bottomSheetScrollView"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:animateLayoutChanges="true"
|
|
||||||
android:background="?colorSurface"
|
android:background="?colorSurface"
|
||||||
android:fadeScrollbars="false"
|
android:paddingHorizontal="24dp"
|
||||||
android:scrollbars="vertical">
|
android:paddingTop="8dp"
|
||||||
|
android:paddingBottom="16dp">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<View
|
||||||
android:layout_width="match_parent"
|
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:layout_height="wrap_content"
|
||||||
android:paddingHorizontal="24dp"
|
android:layout_marginTop="20dp"
|
||||||
android:paddingVertical="16dp">
|
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
|
<TextView
|
||||||
android:id="@+id/bottomSheetSessionLearnMoreTitle"
|
android:id="@+id/bottomSheetSessionLearnMoreDescription"
|
||||||
style="@style/TextAppearance.Vector.Subtitle.Medium.DevicesManagement"
|
style="@style/TextAppearance.Vector.Body"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreDescription"
|
android:layout_marginTop="16dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreCloseButton"
|
||||||
app:layout_constraintHorizontal_bias="0"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreTitle"
|
||||||
tools:text="Verified sessions" />
|
tools:text="Further context on verified sessions. What do those mean, and how do they differ from unverified ones." />
|
||||||
|
|
||||||
<TextView
|
<Button
|
||||||
android:id="@+id/bottomSheetSessionLearnMoreDescription"
|
android:id="@+id/bottomSheetSessionLearnMoreCloseButton"
|
||||||
style="@style/TextAppearance.Vector.Body"
|
style="@style/Widget.Vector.Button.CallToAction"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="56dp"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="24dp"
|
||||||
app:layout_constraintBottom_toTopOf="@id/bottomSheetSessionLearnMoreCloseButton"
|
android:text="@string/action_got_it"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreTitle"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
tools:text="Further context on verified sessions. What do those mean, and how do they differ from unverified ones." />
|
app:layout_constraintTop_toBottomOf="@id/bottomSheetSessionLearnMoreDescription" />
|
||||||
|
|
||||||
<Button
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
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>
|
|
||||||
|
|
Loading…
Reference in a new issue