mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +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);
|
||||
|
||||
RecyclerView recyclerView = view.findViewById(R.id.select_dir_recycler_view);
|
||||
recyclerView.setHasFixedSize(true);
|
||||
|
||||
showRecyclerViewItem(null); // get root folder list
|
||||
|
||||
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);
|
||||
dismiss();
|
||||
});
|
||||
|
|
|
@ -5,23 +5,11 @@
|
|||
android:layout_height="match_parent"
|
||||
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
|
||||
android:id="@+id/select_dir_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="8dp"
|
||||
android:background="@color/colorSurface"
|
||||
android:padding="8dp"
|
||||
android:scrollbars="vertical"
|
||||
android:scrollbarStyle="outsideOverlay" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user