Merge pull request #4718 from osmandapp/coordinate_input_screen

Add keyboard shadows in landscape
This commit is contained in:
Alexey 2017-11-10 19:04:29 +03:00 committed by GitHub
commit a8d323135f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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", "-",