Clean and update icons
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 9.8 KiB |
BIN
OsmAnd/res/drawable-large/map_btn_cancel_o.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
OsmAnd/res/drawable-large/map_btn_cancel_p.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" android:drawable="@drawable/map_btn_menu_p" />
|
||||
<item android:state_enabled="false" android:drawable="@drawable/map_btn_menu_p" />
|
||||
<item android:drawable="@drawable/map_btn_menu_o" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/map_btn_cancel_p" />
|
||||
<item android:state_enabled="false" android:drawable="@drawable/map_btn_cancel_p" />
|
||||
<item android:drawable="@drawable/map_btn_cancel_o" />
|
||||
</selector>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" android:drawable="@drawable/map_btn_cancel_p" />
|
||||
<item android:state_enabled="false" android:drawable="@drawable/map_btn_cancel_p" />
|
||||
<item android:drawable="@drawable/map_btn_cancel_o" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/map_btn_menu_p" />
|
||||
<item android:state_enabled="false" android:drawable="@drawable/map_btn_menu_p" />
|
||||
<item android:drawable="@drawable/map_btn_menu_o" />
|
||||
</selector>
|
||||
|
|
|
@ -29,7 +29,7 @@ public class MapCancelControl extends MapControls {
|
|||
cancelButton.setBackgroundResource(R.drawable.map_btn_cancel);
|
||||
android.widget.FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
|
||||
Gravity.BOTTOM | Gravity.LEFT);
|
||||
params.leftMargin = ctx.getResources().getDrawable(R.drawable.map_btn_cancel).getMinimumWidth();
|
||||
params.leftMargin = ctx.getResources().getDrawable(R.drawable.map_btn_hmenu).getMinimumWidth();
|
||||
parent.addView(cancelButton, params);
|
||||
cancelButton.setEnabled(true);
|
||||
|
||||
|
|
|
@ -21,12 +21,13 @@ public class SmallMapMenuControls extends MapControls {
|
|||
super(mapActivity, showUIHandler, scaleCoefficient);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void showControls(FrameLayout parent) {
|
||||
Context ctx = mapActivity;
|
||||
backToMenuButton = new Button(ctx);
|
||||
backToMenuButton.setContentDescription(ctx.getString(R.string.backToMenu));
|
||||
backToMenuButton.setBackgroundResource(R.drawable.map_btn_hmenu);
|
||||
backToMenuButton.setBackgroundDrawable(ctx.getResources().getDrawable(R.drawable.map_btn_hmenu));
|
||||
android.widget.FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
|
||||
Gravity.BOTTOM | Gravity.LEFT);
|
||||
parent.addView(backToMenuButton, params);
|
||||
|
|