Add keyboard shadows in landscape
This commit is contained in:
parent
114048f3c4
commit
6cbf9652e7
1 changed files with 8 additions and 1 deletions
|
@ -265,9 +265,16 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
});
|
});
|
||||||
|
|
||||||
View keyboardLayout = mainView.findViewById(R.id.keyboard_layout);
|
View keyboardLayout = mainView.findViewById(R.id.keyboard_layout);
|
||||||
|
int lightResId;
|
||||||
|
int darkResId;
|
||||||
if (orientationPortrait) {
|
if (orientationPortrait) {
|
||||||
AndroidUtils.setBackground(mapActivity, keyboardLayout, !lightTheme, R.drawable.bg_bottom_menu_light, R.drawable.bg_bottom_menu_dark);
|
lightResId = R.drawable.bg_bottom_menu_light;
|
||||||
|
darkResId = R.drawable.bg_bottom_menu_dark;
|
||||||
|
} else {
|
||||||
|
lightResId = rightHand ? R.drawable.bg_contextmenu_shadow_left_light : R.drawable.bg_contextmenu_shadow_right_light;
|
||||||
|
darkResId = lightResId;
|
||||||
}
|
}
|
||||||
|
AndroidUtils.setBackground(mapActivity, keyboardLayout, !lightTheme, lightResId, darkResId);
|
||||||
|
|
||||||
Object[] keyboardItems = new Object[] { "1", "2", "3", R.drawable.ic_keyboard_next_field,
|
Object[] keyboardItems = new Object[] { "1", "2", "3", R.drawable.ic_keyboard_next_field,
|
||||||
"4", "5", "6", "-",
|
"4", "5", "6", "-",
|
||||||
|
|
Loading…
Reference in a new issue