Clean and update icons

This commit is contained in:
vshcherb 2014-03-12 20:59:53 +01:00
parent b83df978b1
commit 7f958ebf27
16 changed files with 9 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

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

View file

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

View file

@ -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);

View file

@ -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);