Change favorite icons
This commit is contained in:
parent
2d8b81791c
commit
e758615cb4
5 changed files with 38 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
OsmAnd/res/drawable/poi_favourite_3d.png
Normal file
BIN
OsmAnd/res/drawable/poi_favourite_3d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
32
OsmAnd/res/layout/layers_list_activity_item.xml
Normal file
32
OsmAnd/res/layout/layers_list_activity_item.xml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="1dip"
|
||||
android:paddingBottom="1dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingRight="5dip"
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/quickaction_slider_btn">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/check_item"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
|
@ -122,6 +122,7 @@ public class FavouritesDbHelper extends SQLiteOpenHelper {
|
|||
favoriteGroups.put(GPX_GROUP, new ArrayList<FavouritePoint>());
|
||||
}
|
||||
favoriteGroups.get(GPX_GROUP).add(fp);
|
||||
recalculateCachedFavPoints();
|
||||
}
|
||||
|
||||
public List<FavouritePoint> getFavouritePoints() {
|
||||
|
|
|
@ -51,6 +51,7 @@ import android.widget.AutoCompleteTextView;
|
|||
import android.widget.Button;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.EditText;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.Toast;
|
||||
import android.widget.ToggleButton;
|
||||
|
||||
|
@ -197,10 +198,12 @@ public class MapActivityActions implements DialogProvider {
|
|||
private Dialog createAddWaypointDialog(final Bundle args) {
|
||||
Builder builder = new AlertDialog.Builder(mapActivity);
|
||||
builder.setTitle(R.string.add_waypoint_dialog_title);
|
||||
FrameLayout parent = new FrameLayout(mapActivity);
|
||||
final EditText editText = new EditText(mapActivity);
|
||||
editText.setId(R.id.TextView);
|
||||
builder.setView(editText);
|
||||
editText.setPadding(15, 0, 15, 0);
|
||||
parent.setPadding(15, 0, 15, 0);
|
||||
parent.addView(editText);
|
||||
builder.setView(parent);
|
||||
builder.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||
builder.setPositiveButton(R.string.default_buttons_add, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue