mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
セレクトダイアログの高さを画面の40%に変更
This commit is contained in:
parent
834ee42353
commit
4df56774c3
|
@ -79,8 +79,8 @@ public class LacertaSelectDirDialog extends DialogFragment {
|
|||
LayoutInflater inflater = requireActivity().getLayoutInflater();
|
||||
View view = inflater.inflate(R.layout.lacerta_dialog_select_dir, null);
|
||||
|
||||
// 高さを画面の60%にする
|
||||
int height = (int) (getResources().getDisplayMetrics().heightPixels * 0.6);
|
||||
// 高さを画面の40%にする
|
||||
int height = (int) (getResources().getDisplayMetrics().heightPixels * 0.4);
|
||||
view.setMinimumHeight(height);
|
||||
|
||||
this.recyclerView = view.findViewById(R.id.select_dir_recycler_view);
|
||||
|
|
Loading…
Reference in New Issue
Block a user