Bigger Map mode buttons.

This commit is contained in:
GaidamakUA 2016-04-04 16:08:21 +03:00
parent 72b5cf9fcf
commit 9118075dac
3 changed files with 7 additions and 6 deletions

View file

@ -1,15 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left">
android:layout_gravity="start">
<LinearLayout
android:id="@+id/app_modes_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:orientation="horizontal" >
android:gravity="start"
android:orientation="horizontal">
</LinearLayout>
</HorizontalScrollView>

View file

@ -57,7 +57,7 @@
<dimen name="map_route_buttons_width">60dp</dimen>
<dimen name="map_route_buttons_height">54dp</dimen>
<dimen name="map_route_buttons_height_land">48dp</dimen>
<dimen name="map_mode_button_width">48dp</dimen>
<dimen name="map_mode_button_width">56dp</dimen>
<dimen name="map_address_height">40dp</dimen>
<dimen name="map_button_size">52dp</dimen>

View file

@ -118,7 +118,7 @@ public class AppModeDialog {
static private View createToggle(LayoutInflater layoutInflater, OsmandApplication ctx, LinearLayout layout, ApplicationMode mode){
int metricsX = (int) ctx.getResources().getDimension(R.dimen.map_mode_button_width);
int metricsY = (int) ctx.getResources().getDimension(R.dimen.list_item_height);
int metricsY = (int) ctx.getResources().getDimension(R.dimen.map_mode_button_width);
View tb = layoutInflater.inflate(R.layout.mode_view, null);
tb.findViewById(R.id.app_mode_icon).setContentDescription(mode.toHumanString(ctx));
ImageView iv = (ImageView) tb.findViewById(R.id.app_mode_icon);