レイアウト修正

This commit is contained in:
ろむねこ 2024-01-25 12:52:56 +09:00
parent af55033914
commit 1dff7381af
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 1 additions and 14 deletions

View File

@ -32,12 +32,11 @@ public class LacertaSelectDirDialog extends DialogFragment {
View view = inflater.inflate(R.layout.lacerta_dialog_select_dir, null); View view = inflater.inflate(R.layout.lacerta_dialog_select_dir, null);
RecyclerView recyclerView = view.findViewById(R.id.select_dir_recycler_view); RecyclerView recyclerView = view.findViewById(R.id.select_dir_recycler_view);
recyclerView.setHasFixedSize(true);
showRecyclerViewItem(null); // get root folder list showRecyclerViewItem(null); // get root folder list
this.adapter = new SelectDirDialogItemAdapter((name, itemId) -> { this.adapter = new SelectDirDialogItemAdapter((name, itemId) -> {
Toast.makeText(getContext(), "Called: name", Toast.LENGTH_SHORT).show(); Toast.makeText(getContext(), "Called:" + name, Toast.LENGTH_SHORT).show();
showRecyclerViewItem(itemId); showRecyclerViewItem(itemId);
dismiss(); dismiss();
}); });

View File

@ -5,23 +5,11 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<!-- Currentのタイトルと戻るボタン -->
<androidx.appcompat.widget.Toolbar
android:id="@+id/select_dir_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorSecondaryContainer"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_constraintTop_toTopOf="parent"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/select_dir_recycler_view" android:id="@+id/select_dir_recycler_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="8dp"
android:background="@color/colorSurface" android:background="@color/colorSurface"
android:padding="8dp"
android:scrollbars="vertical" android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay" /> android:scrollbarStyle="outsideOverlay" />