Update tablet layout

This commit is contained in:
Victor Shcherb 2015-04-22 01:03:20 +02:00
parent 72fd6d6b0d
commit e2876f694f
3 changed files with 5 additions and 4 deletions

View file

@ -53,7 +53,8 @@
<ScrollView <ScrollView
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1"> android:layout_weight="1"
android:fillViewport="true">
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"

View file

@ -9,7 +9,7 @@
<dimen name="map_route_buttons_height_land">72dp</dimen> <dimen name="map_route_buttons_height_land">72dp</dimen>
<dimen name="map_route_planning_max_height">400dp</dimen> <dimen name="map_route_planning_max_height">400dp</dimen>
<dimen name="map_minwidth_widget">160dp</dimen> <dimen name="map_minwidth_widget">160dp</dimen>
<dimen name="map_route_planning_land_width">420dp</dimen> <dimen name="map_route_planning_land_width">440dp</dimen>
<dimen name="map_address_height">60dp</dimen> <dimen name="map_address_height">60dp</dimen>
<dimen name="map_button_size">78dp</dimen> <dimen name="map_button_size">78dp</dimen>

View file

@ -160,8 +160,8 @@ public class MapRoutePreferencesControl {
} else { } else {
maxHeight = -1; maxHeight = -1;
lp.height = WindowManager.LayoutParams.MATCH_PARENT; lp.height = WindowManager.LayoutParams.MATCH_PARENT;
lp.width = (int) mapActivity.getResources().getDimension(R.dimen.map_route_planning_max_height); lp.width = (int) mapActivity.getResources().getDimension(R.dimen.map_route_planning_land_width);
lp.gravity = Gravity.BOTTOM | Gravity.LEFT; lp.gravity = Gravity.LEFT;
} }
dialog.getContext().setTheme(R.style.Dialog_Fullscreen); dialog.getContext().setTheme(R.style.Dialog_Fullscreen);
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);