Merge remote-tracking branch 'origin/sasha_pasha_branch' into sasha_pasha_branch
This commit is contained in:
commit
63aae18ab7
6 changed files with 31 additions and 10 deletions
7
OsmAnd/res/drawable/marker_circle_background_light.xml
Normal file
7
OsmAnd/res/drawable/marker_circle_background_light.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<item android:drawable="@drawable/marker_circle_background_light_p" android:state_pressed="true"/>
|
||||||
|
<item android:drawable="@drawable/marker_circle_background_light_n"/>
|
||||||
|
|
||||||
|
</selector>
|
8
OsmAnd/res/drawable/marker_circle_background_light_n.xml
Normal file
8
OsmAnd/res/drawable/marker_circle_background_light_n.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="oval">
|
||||||
|
|
||||||
|
<solid
|
||||||
|
android:color="@color/dashboard_divider_light"/>
|
||||||
|
</shape>
|
8
OsmAnd/res/drawable/marker_circle_background_light_p.xml
Normal file
8
OsmAnd/res/drawable/marker_circle_background_light_p.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="oval">
|
||||||
|
|
||||||
|
<solid
|
||||||
|
android:color="@color/color_white"/>
|
||||||
|
</shape>
|
|
@ -100,16 +100,14 @@
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/map_marker_options_button"
|
android:id="@+id/map_marker_options_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="28dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="28dp"
|
||||||
android:layout_gravity="center_vertical|end"
|
android:layout_gravity="center_vertical|end"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="@drawable/marker_circle_background_light"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:paddingBottom="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:paddingLeft="14dp"
|
android:layout_marginRight="16dp"
|
||||||
android:paddingRight="14dp"
|
tools:src="@drawable/ic_action_marker_passed"/>
|
||||||
android:paddingTop="16dp"
|
|
||||||
tools:src="@drawable/ic_overflow_menu_white"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class MapMarkersActiveAdapter extends RecyclerView.Adapter<MapMarkerItemV
|
||||||
|
|
||||||
holder.description.setText(marker.creationDate + "");
|
holder.description.setText(marker.creationDate + "");
|
||||||
|
|
||||||
holder.optionsBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_remove_dark));
|
holder.optionsBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_marker_passed));
|
||||||
holder.optionsBtn.setOnClickListener(new View.OnClickListener() {
|
holder.optionsBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class MapMarkersHistoryAdapter extends RecyclerView.Adapter<MapMarkerItem
|
||||||
|
|
||||||
holder.description.setText(marker.visitedDate + "");
|
holder.description.setText(marker.visitedDate + "");
|
||||||
|
|
||||||
holder.optionsBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_refresh_dark));
|
holder.optionsBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_history));
|
||||||
holder.optionsBtn.setOnClickListener(new View.OnClickListener() {
|
holder.optionsBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
Loading…
Reference in a new issue