wulkanowy-mod/app/src/main/res/layout/dialog_error.xml

66 lines
2.6 KiB
XML
Raw Normal View History

2018-11-25 08:03:47 -06:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="300dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
2019-08-26 13:54:20 -05:00
<androidx.core.widget.NestedScrollView
2018-11-25 08:03:47 -06:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-26 13:54:20 -05:00
android:overScrollMode="ifContentScrolls">
2018-11-25 08:03:47 -06:00
<HorizontalScrollView
android:layout_width="350dp"
android:layout_height="wrap_content"
android:paddingLeft="24dp"
android:paddingTop="24dp"
android:paddingRight="24dp">
<TextView
android:id="@+id/errorDialogContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-08-26 13:54:20 -05:00
android:gravity="start"
2018-11-25 08:03:47 -06:00
android:textIsSelectable="true"
2019-08-26 13:54:20 -05:00
android:textSize="12sp"
tools:text="@tools:sample/lorem/random" />
2018-11-25 08:03:47 -06:00
</HorizontalScrollView>
2019-08-26 13:54:20 -05:00
</androidx.core.widget.NestedScrollView>
2018-11-25 08:03:47 -06:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:gravity="end"
android:minHeight="52dp"
android:orientation="horizontal">
2019-08-26 13:54:20 -05:00
<com.google.android.material.button.MaterialButton
2018-11-25 08:03:47 -06:00
android:id="@+id/errorDialogCancel"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-11-25 08:03:47 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
2019-08-26 13:54:20 -05:00
android:text="@android:string/cancel" />
2018-11-25 08:03:47 -06:00
2019-08-26 13:54:20 -05:00
<com.google.android.material.button.MaterialButton
2018-11-25 08:03:47 -06:00
android:id="@+id/errorDialogCopy"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-11-25 08:03:47 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
2019-08-26 13:54:20 -05:00
android:text="@android:string/copy" />
2018-11-25 08:03:47 -06:00
</LinearLayout>
</LinearLayout>