セレクトダイアログの高さを画面の40%に変更

This commit is contained in:
ろむねこ 2024-01-26 19:38:14 +09:00
parent 834ee42353
commit 4df56774c3
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -79,8 +79,8 @@ 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%にする // 高さを画面の40%にする
int height = (int) (getResources().getDisplayMetrics().heightPixels * 0.6); int height = (int) (getResources().getDisplayMetrics().heightPixels * 0.4);
view.setMinimumHeight(height); view.setMinimumHeight(height);
this.recyclerView = view.findViewById(R.id.select_dir_recycler_view); this.recyclerView = view.findViewById(R.id.select_dir_recycler_view);