|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="wrap_content" |
| 7 | + android:background="@drawable/background_bottom_sheet" |
| 8 | + android:orientation="vertical" |
| 9 | + android:padding="24dp" |
| 10 | + app:layout_behavior="android.support.design.widget.BottomSheetBehavior"> |
| 11 | + |
| 12 | + <ImageView |
| 13 | + android:id="@+id/icon" |
| 14 | + style="@style/AlertSheetImageStyle" |
| 15 | + android:layout_width="wrap_content" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:layout_marginTop="8dp" |
| 18 | + app:layout_constraintEnd_toEndOf="parent" |
| 19 | + app:layout_constraintStart_toStartOf="parent" |
| 20 | + app:layout_constraintTop_toTopOf="parent" /> |
| 21 | + |
| 22 | + <TextView |
| 23 | + android:id="@+id/title" |
| 24 | + android:layout_width="wrap_content" |
| 25 | + android:layout_height="wrap_content" |
| 26 | + android:layout_marginTop="24dp" |
| 27 | + android:textColor="@color/text_primary" |
| 28 | + android:textSize="@dimen/text_body" |
| 29 | + android:textStyle="bold" |
| 30 | + app:layout_constraintEnd_toEndOf="parent" |
| 31 | + app:layout_constraintStart_toStartOf="parent" |
| 32 | + app:layout_constraintTop_toBottomOf="@id/icon" /> |
| 33 | + |
| 34 | + <TextView |
| 35 | + android:id="@+id/message" |
| 36 | + android:layout_width="@dimen/bottom_sheet_content_width" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_marginTop="16dp" |
| 39 | + android:textAlignment="center" |
| 40 | + android:textColor="@color/text_primary" |
| 41 | + android:textSize="@dimen/text_body" |
| 42 | + android:textStyle="normal" |
| 43 | + app:layout_constraintEnd_toEndOf="parent" |
| 44 | + app:layout_constraintStart_toStartOf="parent" |
| 45 | + app:layout_constraintTop_toBottomOf="@id/title" /> |
| 46 | + |
| 47 | + <org.buffer.android.components.RoundedButton |
| 48 | + android:id="@+id/button_positive" |
| 49 | + style="@style/RoundedButtonStyle" |
| 50 | + android:layout_width="@dimen/bottom_sheet_content_width" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:layout_marginStart="16dp" |
| 53 | + android:layout_marginTop="24dp" |
| 54 | + android:layout_marginEnd="16dp" |
| 55 | + app:bufferButtonStyle="light" |
| 56 | + app:layout_constraintBottom_toTopOf="@id/button_neutral" |
| 57 | + app:layout_constraintEnd_toEndOf="parent" |
| 58 | + app:layout_constraintStart_toStartOf="parent" |
| 59 | + app:layout_constraintTop_toBottomOf="@id/message" /> |
| 60 | + |
| 61 | + <TextView |
| 62 | + android:id="@+id/button_neutral" |
| 63 | + android:layout_width="@dimen/bottom_sheet_content_width" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:layout_marginStart="16dp" |
| 66 | + android:layout_marginTop="4dp" |
| 67 | + android:layout_marginEnd="16dp" |
| 68 | + android:background="?android:selectableItemBackground" |
| 69 | + android:clickable="true" |
| 70 | + android:focusable="true" |
| 71 | + android:gravity="center_horizontal" |
| 72 | + android:padding="16dp" |
| 73 | + android:textColor="@color/colorAccent" |
| 74 | + app:layout_constraintBottom_toBottomOf="parent" |
| 75 | + app:layout_constraintEnd_toEndOf="parent" |
| 76 | + app:layout_constraintHorizontal_bias="0.487" |
| 77 | + app:layout_constraintStart_toStartOf="parent" |
| 78 | + app:layout_constraintTop_toBottomOf="@id/button_positive" /> |
| 79 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 80 | + |
0 commit comments