SubwayTooter-Android-App/app/src/main/res/layout/attachment_rearrange_dialog...

68 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:gravity="center"
android:includeFontPadding="false"
android:text="@string/attachment_rearrange_desc"
android:textColor="?attr/colorTextContent" />
<!--
並べ替えのRecyclerView
ドラッグせずにスクロールするためのタッチ領域を確保したいのでpadding多め
-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipToPadding="false"
android:fadeScrollbars="false"
android:paddingHorizontal="48dp"
android:paddingVertical="8dp"
android:scrollbarStyle="outsideOverlay"
android:scrollbars="vertical" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorSettingDivider" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnCancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/btn_bg_transparent_round6dp"
android:textColor="?attr/colorTextContent"
android:text="@string/cancel" />
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="?attr/colorSettingDivider" />
<Button
android:id="@+id/btnOk"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/btn_bg_transparent_round6dp"
android:textColor="?attr/colorTextContent"
android:text="@string/ok" />
</LinearLayout>
</LinearLayout>