Fix icons and layouts
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
OsmAnd/res/drawable-hdpi/list_activities_show_note.png
Normal file
After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
OsmAnd/res/drawable-hdpi/widget_icon_audio_active.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.7 KiB |
BIN
OsmAnd/res/drawable-hdpi/widget_icon_photo_active.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
OsmAnd/res/drawable-hdpi/widget_icon_video_active.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 917 B After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 334 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB |
|
@ -4,15 +4,16 @@
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_marginTop="2dip"
|
|
||||||
android:layout_marginLeft="5dip"
|
android:layout_marginLeft="5dip"
|
||||||
android:layout_marginRight="5dip"
|
android:layout_marginRight="5dip"
|
||||||
android:weightSum="1" android:background="@color/color_white">
|
android:background="@color/color_white">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="4dip"
|
||||||
|
android:layout_marginBottom="4dip"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/layer_poi"
|
android:text="@string/layer_poi"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
|
|
@ -1030,9 +1030,9 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if(ri.rec.isPhoto()) {
|
if(ri.rec.isPhoto()) {
|
||||||
adapter.registerItem(R.string.recording_context_menu_show, R.drawable.list_context_menu_play, listener, 0);
|
adapter.registerItem(R.string.recording_context_menu_show, R.drawable.list_activities_play_note, listener, 0);
|
||||||
} else {
|
} else {
|
||||||
adapter.registerItem(R.string.recording_context_menu_play, R.drawable.list_context_menu_play, listener, 0);
|
adapter.registerItem(R.string.recording_context_menu_play, R.drawable.list_activities_play_note, listener, 0);
|
||||||
}
|
}
|
||||||
adapter.registerItem(R.string.show_location, 0, new OnContextMenuClick() {
|
adapter.registerItem(R.string.show_location, 0, new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -538,14 +538,13 @@ public class MapInfoLayer extends OsmandMapLayer {
|
||||||
tv.setText(s +map.getString(mi.messageId) +s);
|
tv.setText(s +map.getString(mi.messageId) +s);
|
||||||
}
|
}
|
||||||
// Put the image on the TextView
|
// Put the image on the TextView
|
||||||
// FIXME!!
|
if (mi.drawable != 0) {
|
||||||
// if (mi.drawable != 0) {
|
tv.setPadding((int) (12 *scaleCoefficient), 0, 0, 0);
|
||||||
// tv.setPadding((int) (12 *scaleCoefficient), 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(mi.drawable, 0, 0, 0);
|
||||||
// tv.setCompoundDrawablesWithIntrinsicBounds(mi.drawable, 0, 0, 0);
|
} else {
|
||||||
// } else {
|
|
||||||
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
|
||||||
tv.setPadding((int) (30 *scaleCoefficient), 0, 0, 0);
|
tv.setPadding((int) (30 *scaleCoefficient), 0, 0, 0);
|
||||||
// }
|
}
|
||||||
final boolean selecteable = mi.selecteable();
|
final boolean selecteable = mi.selecteable();
|
||||||
ch.setOnCheckedChangeListener(null);
|
ch.setOnCheckedChangeListener(null);
|
||||||
if(!mi.selecteable()) {
|
if(!mi.selecteable()) {
|
||||||
|
|
|
@ -217,8 +217,8 @@ public class RouteInfoWidgetsFactory {
|
||||||
|
|
||||||
public TextInfoWidget createTimeControl(final MapActivity map, Paint paintText, Paint paintSubText){
|
public TextInfoWidget createTimeControl(final MapActivity map, Paint paintText, Paint paintSubText){
|
||||||
final RoutingHelper routingHelper = map.getRoutingHelper();
|
final RoutingHelper routingHelper = map.getRoutingHelper();
|
||||||
final Drawable time = map.getResources().getDrawable(R.drawable.info_time);
|
final Drawable time = map.getResources().getDrawable(R.drawable.widget_time);
|
||||||
final Drawable timeToGo = map.getResources().getDrawable(R.drawable.info_time_to_go);
|
final Drawable timeToGo = map.getResources().getDrawable(R.drawable.widget_time_to_distance);
|
||||||
final OsmandApplication ctx = map.getMyApplication();
|
final OsmandApplication ctx = map.getMyApplication();
|
||||||
final OsmandPreference<Boolean> showArrival = ctx.getSettings().SHOW_ARRIVAL_TIME_OTHERWISE_EXPECTED_TIME;
|
final OsmandPreference<Boolean> showArrival = ctx.getSettings().SHOW_ARRIVAL_TIME_OTHERWISE_EXPECTED_TIME;
|
||||||
final TextInfoWidget leftTimeControl = new TextInfoWidget(map, 0, paintText, paintSubText) {
|
final TextInfoWidget leftTimeControl = new TextInfoWidget(map, 0, paintText, paintSubText) {
|
||||||
|
@ -280,6 +280,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public TextInfoWidget createMaxSpeedControl(final MapActivity map, Paint paintText, Paint paintSubText) {
|
public TextInfoWidget createMaxSpeedControl(final MapActivity map, Paint paintText, Paint paintSubText) {
|
||||||
final RoutingHelper rh = map.getMyApplication().getRoutingHelper();
|
final RoutingHelper rh = map.getMyApplication().getRoutingHelper();
|
||||||
final OsmAndLocationProvider locationProvider = map.getMyApplication().getLocationProvider();
|
final OsmAndLocationProvider locationProvider = map.getMyApplication().getLocationProvider();
|
||||||
|
@ -318,7 +319,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
speedControl.setImageDrawable(map.getResources().getDrawable(R.drawable.info_max_speed));
|
speedControl.setImageDrawable(map.getResources().getDrawable(R.drawable.widget_max_speed));
|
||||||
speedControl.setText(null, null);
|
speedControl.setText(null, null);
|
||||||
return speedControl;
|
return speedControl;
|
||||||
}
|
}
|
||||||
|
@ -362,7 +363,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
speedControl.setImageDrawable(app.getResources().getDrawable(R.drawable.info_speed));
|
speedControl.setImageDrawable(map.getResources().getDrawable(R.drawable.widget_speed));
|
||||||
speedControl.setText(null, null);
|
speedControl.setText(null, null);
|
||||||
return speedControl;
|
return speedControl;
|
||||||
}
|
}
|
||||||
|
@ -435,7 +436,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
public TextInfoWidget createDistanceControl(final MapActivity map, Paint paintText, Paint paintSubText) {
|
public TextInfoWidget createDistanceControl(final MapActivity map, Paint paintText, Paint paintSubText) {
|
||||||
final OsmandMapTileView view = map.getMapView();
|
final OsmandMapTileView view = map.getMapView();
|
||||||
DistanceToPointInfoControl distanceControl = new DistanceToPointInfoControl(map, 0, paintText, paintSubText, map.getResources()
|
DistanceToPointInfoControl distanceControl = new DistanceToPointInfoControl(map, 0, paintText, paintSubText, map.getResources()
|
||||||
.getDrawable(R.drawable.info_target), view) {
|
.getDrawable(R.drawable.widget_target), view) {
|
||||||
@Override
|
@Override
|
||||||
public LatLon getPointToNavigate() {
|
public LatLon getPointToNavigate() {
|
||||||
return map.getPointToNavigate();
|
return map.getPointToNavigate();
|
||||||
|
@ -456,7 +457,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
final OsmandMapTileView view = map.getMapView();
|
final OsmandMapTileView view = map.getMapView();
|
||||||
final TargetPointsHelper targets = map.getMyApplication().getTargetPointsHelper();
|
final TargetPointsHelper targets = map.getMyApplication().getTargetPointsHelper();
|
||||||
DistanceToPointInfoControl distanceControl = new DistanceToPointInfoControl(map, 0, paintText, paintSubText, map.getResources()
|
DistanceToPointInfoControl distanceControl = new DistanceToPointInfoControl(map, 0, paintText, paintSubText, map.getResources()
|
||||||
.getDrawable(R.drawable.info_intermediate), view) {
|
.getDrawable(R.drawable.widget_intermediate), view) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void click(OsmandMapTileView view) {
|
protected void click(OsmandMapTileView view) {
|
||||||
|
|