Update icons
Before Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 104 B |
BIN
OsmAnd/res/drawable-large/poi_parking_pos_limit.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
OsmAnd/res/drawable-large/poi_parking_pos_no_limit.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
OsmAnd/res/drawable-xhdpi/icon.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
OsmAnd/res/drawable-xhdpi/icon_free.png
Normal file
After Width: | Height: | Size: 21 KiB |
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item android:drawable="@drawable/poi_parking_pos_limit_menu_pushed" android:state_pressed="true"/>
|
||||
<item android:drawable="@drawable/poi_parking_pos_limit_menu"/>
|
||||
|
||||
</selector>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item android:drawable="@drawable/poi_parking_pos_no_limit_menu_pushed" android:state_pressed="true"/>
|
||||
<item android:drawable="@drawable/poi_parking_pos_no_limit_menu"/>
|
||||
|
||||
</selector>
|
|
@ -8,12 +8,12 @@
|
|||
android:layout_marginLeft="5dp" android:layout_marginRight="5dp"
|
||||
android:gravity="center" android:layout_marginTop="10dp" android:layout_marginBottom="10dp" android:text="@string/select_navigation_mode"></TextView>
|
||||
<LinearLayout android:id="@+id/LinearLayout" android:layout_width="fill_parent" android:gravity="center" android:layout_height="wrap_content" android:orientation="horizontal">
|
||||
<Button android:contentDescription="@string/app_mode_car" android:id="@+id/CarButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:button="@drawable/car" />
|
||||
<Button android:contentDescription="@string/app_mode_bicycle" android:id="@+id/BicycleButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:button="@drawable/bicycle" />
|
||||
<Button android:contentDescription="@string/app_mode_pedestrian" android:id="@+id/PedestrianButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:button="@drawable/pedestrian" />
|
||||
<ImageButton android:contentDescription="@string/app_mode_car" android:id="@+id/CarButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:src="@drawable/car_small" />
|
||||
<ImageButton android:contentDescription="@string/app_mode_bicycle" android:id="@+id/BicycleButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:src="@drawable/bicycle_small" />
|
||||
<ImageButton android:contentDescription="@string/app_mode_pedestrian" android:id="@+id/PedestrianButton"
|
||||
android:layout_width="64dp" android:layout_height="64dp" android:layout_marginLeft="10dp" android:src="@drawable/pedestrian_small" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
|
|
@ -4,15 +4,24 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="5dp"
|
||||
>
|
||||
<CheckBox android:id="@+id/check_item" android:focusable="false" android:gravity="top"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"/>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/plugin_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="10dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20sp" android:drawableRight="@drawable/marker1_disabled" android:drawableLeft="@drawable/list_activities_plugin_menu_symbol" android:text="@string/extra_settings" android:gravity="center_vertical" android:paddingLeft="10dp" android:paddingRight="10dp" android:background="@drawable/ic_background_plugin_listitem">
|
||||
android:textSize="20sp" android:text="@string/extra_settings"
|
||||
android:gravity="center_vertical" android:paddingLeft="5dp" android:paddingRight="10dp">
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/plugin_descr"
|
||||
android:layout_width="fill_parent"
|
||||
|
|
|
@ -13,6 +13,7 @@ import android.view.LayoutInflater;
|
|||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
|
@ -23,7 +24,6 @@ public class PluginsActivity extends OsmandListActivity {
|
|||
private List<OsmandPlugin> availablePlugins;
|
||||
private Set<String> clickedPlugins = new LinkedHashSet<String>();
|
||||
private Set<String> restartPlugins = new LinkedHashSet<String>();
|
||||
private static int colorGreen = 0xff23CC6C;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -41,10 +41,15 @@ public class PluginsActivity extends OsmandListActivity {
|
|||
setListAdapter(new OsmandPluginsAdapter(availablePlugins));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onListItemClick(ListView l, View v, int position, long id) {
|
||||
super.onListItemClick(l, v, position, id);
|
||||
|
||||
click(position);
|
||||
}
|
||||
|
||||
private void click(int position) {
|
||||
OsmandPlugin item = getListAdapter().getItem(position);
|
||||
boolean enable = !restartPlugins.contains(item.getId());
|
||||
boolean ok = OsmandPlugin.enablePlugin(((OsmandApplication) getApplication()), item, enable);
|
||||
|
@ -80,18 +85,27 @@ public class PluginsActivity extends OsmandListActivity {
|
|||
}
|
||||
OsmandPlugin plugin = getItem(position);
|
||||
boolean toBeEnabled = restartPlugins.contains(plugin.getId());
|
||||
int resourceId = toBeEnabled ? R.drawable.marker1_enabled : R.drawable.marker1_disabled;
|
||||
|
||||
final View row = v;
|
||||
CheckBox ch = (CheckBox) row.findViewById(R.id.check_item);
|
||||
ch.setOnClickListener(null);
|
||||
ch.setChecked(toBeEnabled);
|
||||
ch.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
click(position);
|
||||
}
|
||||
});
|
||||
TextView nameView = (TextView) row.findViewById(R.id.plugin_name);
|
||||
nameView.setText(plugin.getName());
|
||||
nameView.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.drawable.list_activities_plugin_menu_symbol), null, getResources().getDrawable(resourceId), null);
|
||||
nameView.setContentDescription(plugin.getName() + " " + getString(toBeEnabled ? R.string.item_checked : R.string.item_unchecked));
|
||||
|
||||
|
||||
TextView description = (TextView) row.findViewById(R.id.plugin_descr);
|
||||
description.setText(plugin.getDescription());
|
||||
description.setVisibility(clickedPlugins.contains(plugin.getId()) || !restartPlugins.contains(plugin.getId()) ? View.VISIBLE : View.GONE);
|
||||
description.setTextColor(toBeEnabled? colorGreen : Color.LTGRAY);
|
||||
description.setVisibility(clickedPlugins.contains(plugin.getId()) ||
|
||||
!restartPlugins.contains(plugin.getId()) ? View.VISIBLE : View.GONE);
|
||||
description.setTextColor(Color.LTGRAY);
|
||||
|
||||
return row;
|
||||
}
|
||||
|
|
|
@ -679,16 +679,16 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
builder.setView(view);
|
||||
final AlertDialog dlg = builder.show();
|
||||
|
||||
final Button[] buttons = new Button[ApplicationMode.values().length];
|
||||
buttons[ApplicationMode.CAR.ordinal()] = (Button) view.findViewById(R.id.CarButton);
|
||||
buttons[ApplicationMode.BICYCLE.ordinal()] = (Button) view.findViewById(R.id.BicycleButton);
|
||||
buttons[ApplicationMode.PEDESTRIAN.ordinal()] = (Button) view.findViewById(R.id.PedestrianButton);
|
||||
final View[] buttons = new View[ApplicationMode.values().length];
|
||||
buttons[ApplicationMode.CAR.ordinal()] = view.findViewById(R.id.CarButton);
|
||||
buttons[ApplicationMode.BICYCLE.ordinal()] =view.findViewById(R.id.BicycleButton);
|
||||
buttons[ApplicationMode.PEDESTRIAN.ordinal()] = view.findViewById(R.id.PedestrianButton);
|
||||
final Dialog scrDialog = scr.getDialog();
|
||||
final String tlt = " " + title;
|
||||
for (int i = 0; i < buttons.length; i++) {
|
||||
if (buttons[i] != null) {
|
||||
final int ind = i;
|
||||
final Button b = buttons[i];
|
||||
final View b = buttons[i];
|
||||
b.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
|
@ -512,7 +512,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
|||
}
|
||||
});
|
||||
parkingPlaceControl.setText(null, null);
|
||||
parkingPlaceControl.setImageDrawable(map.getResources().getDrawable(R.drawable.list_activities_poi_parking));
|
||||
parkingPlaceControl.setImageDrawable(map.getResources().getDrawable(R.drawable.widget_parking));
|
||||
return parkingPlaceControl;
|
||||
}
|
||||
}
|
||||
|
|
BIN
plugins/Osmand-ParkingPlugin/res/drawable-xhdpi/icon_parking.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
plugins/Osmand-SRTMPlugin/res/drawable-xhdpi/icon_contour.png
Normal file
After Width: | Height: | Size: 20 KiB |