最大サイズを変更

This commit is contained in:
ろむねこ 2024-01-25 15:00:03 +09:00
parent ce1686a1d7
commit d5ebc2c498
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -47,6 +47,10 @@ public class LacertaSelectDirDialog extends DialogFragment {
LayoutInflater inflater = requireActivity().getLayoutInflater(); LayoutInflater inflater = requireActivity().getLayoutInflater();
View view = inflater.inflate(R.layout.lacerta_dialog_select_dir, null); View view = inflater.inflate(R.layout.lacerta_dialog_select_dir, null);
// 高さを画面の60%にする
int height = (int) (getResources().getDisplayMetrics().heightPixels * 0.6);
view.setMinimumHeight(height);
this.recyclerView = view.findViewById(R.id.select_dir_recycler_view); this.recyclerView = view.findViewById(R.id.select_dir_recycler_view);
this.current_dir_text_view = view.findViewById(R.id.current_dir_text_view); this.current_dir_text_view = view.findViewById(R.id.current_dir_text_view);