Rename icons
BIN
OsmAnd/res/drawable-hdpi/ic_action_transparent.png
Normal file
After Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
@ -3,17 +3,6 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="vertical" android:layout_width="fill_parent"
|
android:orientation="vertical" android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="fill_parent">
|
||||||
<!--
|
|
||||||
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
||||||
<ImageButton android:src="@drawable/filter" android:id="@+id/ShowFilter"
|
|
||||||
android:layout_height="wrap_content" android:layout_width="wrap_content" android:contentDescription="@string/search_poi_filter"/>
|
|
||||||
<ImageButton android:src="@drawable/list_activities_show_on_map" android:contentDescription="@string/search_shown_on_map"
|
|
||||||
android:id="@+id/ShowOnMap" android:layout_height="wrap_content" android:layout_width="wrap_content"/>
|
|
||||||
<Button android:text="@string/search_POI_level_btn"
|
|
||||||
android:id="@+id/SearchPOILevelButton" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_weight="1"/>
|
|
||||||
<TextView android:layout_width="wrap_content" android:text="" android:id="@+id/SearchAreaText" android:layout_height="wrap_content"/>
|
|
||||||
<ProgressBar android:layout_width="wrap_content" android:text="" android:id="@+id/ProgressBar" android:layout_height="wrap_content" android:visibility="gone"/>
|
|
||||||
</LinearLayout> -->
|
|
||||||
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/SearchFilterLayout" android:visibility="gone"
|
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/SearchFilterLayout" android:visibility="gone"
|
||||||
android:layout_marginLeft = "5dp" >
|
android:layout_marginLeft = "5dp" >
|
||||||
<TextView android:layout_width="wrap_content" android:text="@string/search_poi_filter" android:id="@+id/TextView" android:layout_height="wrap_content"/>
|
<TextView android:layout_width="wrap_content" android:text="@string/search_poi_filter" android:id="@+id/TextView" android:layout_height="wrap_content"/>
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class ContextMenuAdapter {
|
||||||
if (getImageId(position, holoLight) != 0) {
|
if (getImageId(position, holoLight) != 0) {
|
||||||
tv.setCompoundDrawablesWithIntrinsicBounds(getImageId(position, holoLight), 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(getImageId(position, holoLight), 0, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.list_activities_transparent, 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_action_transparent, 0, 0, 0);
|
||||||
}
|
}
|
||||||
tv.setCompoundDrawablePadding(padding);
|
tv.setCompoundDrawablePadding(padding);
|
||||||
|
|
||||||
|
|
|
@ -321,7 +321,7 @@ public class MapActivityLayers {
|
||||||
if(adapter.getImageId(position, light) != 0) {
|
if(adapter.getImageId(position, light) != 0) {
|
||||||
tv.setCompoundDrawablesWithIntrinsicBounds(adapter.getImageId(position, light), 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(adapter.getImageId(position, light), 0, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.list_activities_transparent, 0, 0, 0);
|
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_action_transparent, 0, 0, 0);
|
||||||
}
|
}
|
||||||
tv.setCompoundDrawablePadding(padding);
|
tv.setCompoundDrawablePadding(padding);
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
int z = Math.max(16, settings.getLastKnownMapZoom());
|
int z = Math.max(16, settings.getLastKnownMapZoom());
|
||||||
MapActivityActions.createDirectionsActions(qa, amenity.getLocation(), amenity, name, z, this, true , null);
|
MapActivityActions.createDirectionsActions(qa, amenity.getLocation(), amenity, name, z, this, true , null);
|
||||||
ActionItem poiDescription = new ActionItem();
|
ActionItem poiDescription = new ActionItem();
|
||||||
poiDescription.setIcon(getResources().getDrawable(R.drawable.list_activities_show_poi_description));
|
poiDescription.setIcon(getResources().getDrawable(R.drawable.ic_action_note_light));
|
||||||
poiDescription.setTitle(getString(R.string.poi_context_menu_showdescription));
|
poiDescription.setTitle(getString(R.string.poi_context_menu_showdescription));
|
||||||
final StringBuilder d = getDescriptionContent(amenity);
|
final StringBuilder d = getDescriptionContent(amenity);
|
||||||
poiDescription.setOnClickListener(new OnClickListener() {
|
poiDescription.setOnClickListener(new OnClickListener() {
|
||||||
|
|
|
@ -741,8 +741,8 @@ public class MapInfoLayer extends OsmandMapLayer {
|
||||||
final OsmandMapTileView view = map.getMapView();
|
final OsmandMapTileView view = map.getMapView();
|
||||||
|
|
||||||
FrameLayout.LayoutParams fparams = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
FrameLayout.LayoutParams fparams = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
||||||
final Drawable config = view.getResources().getDrawable(R.drawable.list_activities_config);
|
final Drawable config = view.getResources().getDrawable(R.drawable.map_config);
|
||||||
final Drawable configWhite = view.getResources().getDrawable(R.drawable.list_activities_config_white);
|
final Drawable configWhite = view.getResources().getDrawable(R.drawable.map_config_white);
|
||||||
ImageViewWidget configuration = new ImageViewWidget(map) {
|
ImageViewWidget configuration = new ImageViewWidget(map) {
|
||||||
private boolean nm;
|
private boolean nm;
|
||||||
|
|
||||||
|
@ -772,8 +772,8 @@ public class MapInfoLayer extends OsmandMapLayer {
|
||||||
return fl;
|
return fl;
|
||||||
}
|
}
|
||||||
private View createLayer(){
|
private View createLayer(){
|
||||||
// final Drawable globusDrawable = view.getResources().getDrawable(R.drawable.list_activities_globus);
|
// final Drawable globusDrawable = view.getResources().getDrawable(R.drawable.map_globus);
|
||||||
// final Drawable globusDrawableWhite = view.getResources().getDrawable(R.drawable.list_activities_globus_white);
|
// final Drawable globusDrawableWhite = view.getResources().getDrawable(R.drawable.map_globus_white);
|
||||||
final Drawable layerDrawable = view.getResources().getDrawable(R.drawable.map_layers_black);
|
final Drawable layerDrawable = view.getResources().getDrawable(R.drawable.map_layers_black);
|
||||||
final Drawable layerDrawableWhite = view.getResources().getDrawable(R.drawable.map_layers_white);
|
final Drawable layerDrawableWhite = view.getResources().getDrawable(R.drawable.map_layers_white);
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@ public class MonitoringInfoControl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ImageViewWidget createMonitoringWidget(final OsmandMapTileView view, final MapActivity map) {
|
public ImageViewWidget createMonitoringWidget(final OsmandMapTileView view, final MapActivity map) {
|
||||||
final Drawable m = view.getResources().getDrawable(R.drawable.list_activities_monitoring);
|
final Drawable m = view.getResources().getDrawable(R.drawable.map_monitoring);
|
||||||
final Drawable mWhite = view.getResources().getDrawable(R.drawable.list_activities_monitoring_white);
|
final Drawable mWhite = view.getResources().getDrawable(R.drawable.map_monitoring_white);
|
||||||
final ImageViewWidget monitoringServices = new ImageViewWidget(view.getContext()) {
|
final ImageViewWidget monitoringServices = new ImageViewWidget(view.getContext()) {
|
||||||
private boolean nightMode;
|
private boolean nightMode;
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -235,8 +235,8 @@ public class MapInfoWidgetsFactory {
|
||||||
|
|
||||||
public ImageViewWidget createCompassView(final MapActivity map){
|
public ImageViewWidget createCompassView(final MapActivity map){
|
||||||
final OsmandMapTileView view = map.getMapView();
|
final OsmandMapTileView view = map.getMapView();
|
||||||
final Drawable compass = map.getResources().getDrawable(R.drawable.list_activities_compass);
|
final Drawable compass = map.getResources().getDrawable(R.drawable.map_compass);
|
||||||
final Drawable compassWhite = map.getResources().getDrawable(R.drawable.list_activities_compass_white);
|
final Drawable compassWhite = map.getResources().getDrawable(R.drawable.map_compass_white);
|
||||||
final int mw = (int) compass.getMinimumWidth() ;
|
final int mw = (int) compass.getMinimumWidth() ;
|
||||||
final int mh = (int) compass.getMinimumHeight() ;
|
final int mh = (int) compass.getMinimumHeight() ;
|
||||||
ImageViewWidget compassView = new ImageViewWidget(map) {
|
ImageViewWidget compassView = new ImageViewWidget(map) {
|
||||||
|
|