[android] refactor: Zoom buttons colorized.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
android/res/drawable-hdpi/ic_zoom_in_night.png
Normal file
After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
android/res/drawable-hdpi/ic_zoom_in_pressed_night.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
android/res/drawable-hdpi/ic_zoom_out_night.png
Normal file
After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 2.2 KiB |
BIN
android/res/drawable-hdpi/ic_zoom_out_pressed_night.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 1.1 KiB |
BIN
android/res/drawable-mdpi/ic_zoom_in_night.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-mdpi/ic_zoom_in_pressed_night.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 1 KiB |
BIN
android/res/drawable-mdpi/ic_zoom_out_night.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-mdpi/ic_zoom_out_pressed_night.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
android/res/drawable-xhdpi/ic_zoom_in_night.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.3 KiB |
BIN
android/res/drawable-xhdpi/ic_zoom_in_pressed_night.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
android/res/drawable-xhdpi/ic_zoom_out_night.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
android/res/drawable-xhdpi/ic_zoom_out_pressed_night.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
android/res/drawable-xxhdpi/ic_zoom_in_night.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
android/res/drawable-xxhdpi/ic_zoom_in_pressed_night.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.9 KiB |
BIN
android/res/drawable-xxhdpi/ic_zoom_out_night.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 5.3 KiB |
BIN
android/res/drawable-xxhdpi/ic_zoom_out_pressed_night.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.8 KiB |
BIN
android/res/drawable-xxxhdpi/ic_zoom_in_night.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 8 KiB |
BIN
android/res/drawable-xxxhdpi/ic_zoom_in_pressed_night.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.7 KiB |
BIN
android/res/drawable-xxxhdpi/ic_zoom_out_night.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 7.9 KiB |
BIN
android/res/drawable-xxxhdpi/ic_zoom_out_pressed_night.png
Normal file
After Width: | Height: | Size: 11 KiB |
9
android/res/drawable/zoom_in_night.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<item android:drawable="@drawable/ic_zoom_in_pressed_night"
|
||||
android:state_pressed="true"/>
|
||||
|
||||
<item android:drawable="@drawable/ic_zoom_in_night"/>
|
||||
</selector>
|
9
android/res/drawable/zoom_out_night.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<item android:drawable="@drawable/ic_zoom_out_pressed_night"
|
||||
android:state_pressed="true"/>
|
||||
|
||||
<item android:drawable="@drawable/ic_zoom_out_night"/>
|
||||
</selector>
|
|
@ -25,10 +25,10 @@
|
|||
<ImageButton android:id="@+id/map_button_plus"
|
||||
style="@style/MwmWidget.MapButton"
|
||||
android:layout_marginRight="@dimen/margin_quarter"
|
||||
android:src="@drawable/zoom_in"/>
|
||||
tools:src="@drawable/zoom_in"/>
|
||||
|
||||
<ImageButton android:id="@+id/map_button_minus"
|
||||
style="@style/MwmWidget.MapButton"
|
||||
android:layout_marginRight="@dimen/margin_quarter"
|
||||
android:src="@drawable/zoom_out"/>
|
||||
tools:src="@drawable/zoom_out"/>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -370,9 +370,13 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
{
|
||||
View frame = findViewById(R.id.navigation_buttons);
|
||||
mBtnZoomIn = (ImageButton) frame.findViewById(R.id.map_button_plus);
|
||||
mBtnZoomIn.setImageResource(ThemeUtils.isNightTheme() ? R.drawable.zoom_in_night
|
||||
: R.drawable.zoom_in);
|
||||
mBtnZoomIn.setOnClickListener(this);
|
||||
mBtnZoomOut = (ImageButton) frame.findViewById(R.id.map_button_minus);
|
||||
mBtnZoomOut.setOnClickListener(this);
|
||||
mBtnZoomOut.setImageResource(ThemeUtils.isNightTheme() ? R.drawable.zoom_out_night
|
||||
: R.drawable.zoom_out);
|
||||
}
|
||||
|
||||
private void initPlacePage()
|
||||
|
|