mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
a96aa2ff48
Using both `setMessage()` and `setView()` on the same AlertDialog, on small screens the "OK" and "Cancel" buttons were not be show. So, put the message into our custom view.
35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="25dp"
|
|
android:paddingRight="25dp"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/autodel_ask_msg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:paddingBottom="10dp"
|
|
tools:text="Really delete these msgs?" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/i_understand"
|
|
android:text="@string/autodel_confirm"
|
|
android:textSize="16sp"
|
|
android:textColor="@color/red_500"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|