Add large icons

This commit is contained in:
Victor Shcherb 2015-03-19 23:57:13 +01:00
parent 29ac2621e4
commit 16b835fbf8
88 changed files with 50 additions and 39 deletions

View file

@ -1,3 +1,6 @@
cp -f res/drawable-hdpi/widget_* res/drawable-large/ cp -f res/drawable-hdpi/widget_* res/drawable-large/
cp -f res/drawable-xxhdpi/widget_* res/drawable-large-hdpi/ cp -f res/drawable-xxhdpi/widget_* res/drawable-large-hdpi/
cp -f res/drawable-xhdpi/widget_* res/drawable-large-xhdpi/ cp -f res/drawable-xhdpi/widget_* res/drawable-large-xhdpi/
cp -f res/drawable-hdpi/map_* res/drawable-large/
cp -f res/drawable-xhdpi/map_* res/drawable-large-hdpi/
cp -f res/drawable-xxhdpi/map_* res/drawable-large-xhdpi/

View file

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

View file

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View file

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>
<inset <inset

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -4,7 +4,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_1_shadow" /> android:src="@drawable/map_bt_round_1_shadow" />
</item> </item>
<item> <item>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item> <item>
<bitmap android:src="@drawable/bt_round_2_shadow" android:gravity="center" /> <bitmap android:src="@drawable/map_bt_round_2_shadow" android:gravity="center" />
</item> </item>
<item> <item>
<inset <inset

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item> <item>
<bitmap android:src="@drawable/bt_round_2_shadow" android:gravity="center" /> <bitmap android:src="@drawable/map_bt_round_2_shadow" android:gravity="center" />
</item> </item>
<item> <item>
<inset <inset

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item> <item>
<bitmap android:src="@drawable/bt_round_2_shadow" android:gravity="center" /> <bitmap android:src="@drawable/map_bt_round_2_shadow" android:gravity="center" />
</item> </item>
<item> <item>
<inset <inset

View file

@ -2,7 +2,7 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item> <item>
<bitmap android:src="@drawable/bt_round_2_shadow" android:gravity="center" /> <bitmap android:src="@drawable/map_bt_round_2_shadow" android:gravity="center" />
</item> </item>
<item> <item>

View file

@ -4,6 +4,6 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@drawable/bt_round_2_shadow" /> android:src="@drawable/map_bt_round_2_shadow" />
</item> </item>
</selector> </selector>

View file

@ -1,29 +1,37 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<dimen name="dashHeaderHeight">60dp</dimen> <dimen name="map_trans_seek_size">120dp</dimen>
<dimen name="subHeaderPadding">3dp</dimen> <dimen name="map_widget_text_size">35sp</dimen>
<dimen name="subHeaderMarginLeft">22dp</dimen> <dimen name="map_widget_text_size_small">23sp</dimen>
<dimen name="showAllButtonMarginRight">21dp</dimen> <dimen name="map_button_text_size">27sp</dimen>
<dimen name="showAllButtonHeight">54dp</dimen> <dimen name="map_route_buttons_width">90dp</dimen>
<dimen name="dashListItemHeight">75dp</dimen> <dimen name="map_route_buttons_height">81dp</dimen>
<dimen name="dashFavIconSize">42dp</dimen> <dimen name="map_route_buttons_height_land">72dp</dimen>
<dimen name="dashFavIconMargin">18dp</dimen>
<dimen name="dashFavDirectionSize">15dp</dimen> <dimen name="map_address_height">60dp</dimen>
<dimen name="dashMapMargin">3dp</dimen> <dimen name="map_button_size">75dp</dimen>
<dimen name="dashProgressTextSize">27sp</dimen> <dimen name="map_ruler_width">180dp</dimen>
<dimen name="dashNoteIconSize">42dp</dimen> <dimen name="map_ruler_bottom_margin">14dp</dimen>
<dimen name="dashPluginPadding">6dp</dimen> <dimen name="map_button_shadow_width">81dp</dimen>
<dimen name="dashPluginMargin">12dp</dimen> <dimen name="map_alarm_size">116dp</dimen>
<dimen name="dashSearchBtnHeight">135dp</dimen> <dimen name="map_alarm_text_size">37sp</dimen>
<dimen name="dashSearchPaddingTop">25dp</dimen>
<dimen name="dashSearchPaddingBot">15dp</dimen> <dimen name="map_alarm_bottom_margin">140dp</dimen>
<dimen name="dashPadding">9dp</dimen> <dimen name="map_alarm_bottom_margin_land">78dp</dimen>
<dimen name="dashAboutTextSize">30sp</dimen> <dimen name="map_button_shadow_height">127dp</dimen>
<dimen name="dashCardMargin">6dp</dimen> <dimen name="map_widget_icon">32dp</dimen>
<dimen name="map_widget_height">48dp</dimen>
<dimen name="map_widget_image">120dp</dimen>
<dimen name="map_button_spacing">19dp</dimen>
<dimen name="map_button_spacing_land">12dp</dimen>
<dimen name="map_button_margin">6dp</dimen>
<dimen name="map_routing_progress_width">150dp</dimen>
<dimen name="map_button_shadow_margin">4dp</dimen>
<dimen name="map_button_inset_shadow">2dp</dimen>
<dimen name="map_button_inset">6dp</dimen>
<dimen name="map_button_rect_rad">4dp</dimen>
<dimen name="map_button_stroke">1px</dimen>
<!-- TextSizes -->
<dimen name="showAllButtonTextSize">16sp</dimen>
<dimen name="subHeaderTextSize">21sp</dimen>
<dimen name="dashFavNameTextSize">24sp</dimen>
<dimen name="dashParkingTextSize">24sp</dimen>
</resources> </resources>

View file

@ -328,7 +328,7 @@ public class MapControlsLayer extends OsmandMapLayer {
private void initZooms() { private void initZooms() {
final OsmandMapTileView view = mapActivity.getMapView(); final OsmandMapTileView view = mapActivity.getMapView();
View zoomInButton = mapActivity.findViewById(R.id.map_zoom_in_button); View zoomInButton = mapActivity.findViewById(R.id.map_zoom_in_button);
controls.add(createHudButton((ImageView) zoomInButton, R.drawable.ic_action_zoom_in).setRoundTransparent()); controls.add(createHudButton((ImageView) zoomInButton, R.drawable.map_zoom_in).setRoundTransparent());
zoomInButton.setOnClickListener(new View.OnClickListener() { zoomInButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
@ -344,7 +344,7 @@ public class MapControlsLayer extends OsmandMapLayer {
final View.OnLongClickListener listener = MapControlsLayer.getOnClickMagnifierListener(view); final View.OnLongClickListener listener = MapControlsLayer.getOnClickMagnifierListener(view);
zoomInButton.setOnLongClickListener(listener); zoomInButton.setOnLongClickListener(listener);
View zoomOutButton = mapActivity.findViewById(R.id.map_zoom_out_button); View zoomOutButton = mapActivity.findViewById(R.id.map_zoom_out_button);
controls.add(createHudButton((ImageView) zoomOutButton, R.drawable.ic_action_zoom_out).setRoundTransparent()); controls.add(createHudButton((ImageView) zoomOutButton, R.drawable.map_zoom_out).setRoundTransparent());
zoomOutButton.setOnClickListener(new View.OnClickListener() { zoomOutButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {