mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
レイアウト修正
This commit is contained in:
parent
af55033914
commit
1dff7381af
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
|
@ -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" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user