diff --git a/OsmAnd/res/layout/list_item_description_with_image.xml b/OsmAnd/res/layout/list_item_description_with_image.xml
index 72f94ed955..56535782c4 100644
--- a/OsmAnd/res/layout/list_item_description_with_image.xml
+++ b/OsmAnd/res/layout/list_item_description_with_image.xml
@@ -10,21 +10,21 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/activity_background_basic"
- tools:paddingEnd="56dp"
- tools:paddingStart="56dp"
tools:paddingTop="16dp">
diff --git a/OsmAnd/res/layout/list_item_ui_customization.xml b/OsmAnd/res/layout/list_item_ui_customization.xml
index 4526820df9..bcf69732f6 100644
--- a/OsmAnd/res/layout/list_item_ui_customization.xml
+++ b/OsmAnd/res/layout/list_item_ui_customization.xml
@@ -9,8 +9,8 @@
-
+ android:layout_marginEnd="@dimen/content_padding_half"
+ android:layout_marginRight="@dimen/content_padding_half"
+ android:padding="@dimen/content_padding_small">
+
+
+
+
diff --git a/OsmAnd/src/net/osmand/plus/profiles/EditProfilesFragment.java b/OsmAnd/src/net/osmand/plus/profiles/EditProfilesFragment.java
index 6dbe8f0e16..c2766ca4ba 100644
--- a/OsmAnd/src/net/osmand/plus/profiles/EditProfilesFragment.java
+++ b/OsmAnd/src/net/osmand/plus/profiles/EditProfilesFragment.java
@@ -9,6 +9,7 @@ import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
@@ -384,11 +385,11 @@ public class EditProfilesFragment extends BaseOsmAndFragment {
}
}
});
- profileViewHolder.moveIcon.setVisibility(mode.isDeleted() ? View.GONE : View.VISIBLE);
+ profileViewHolder.moveButton.setVisibility(mode.isDeleted() ? View.GONE : View.VISIBLE);
if (!mode.isDeleted()) {
int removeIconColor = mode.isCustomProfile() ? R.color.color_osm_edit_delete : R.color.icon_color_default_light;
profileViewHolder.actionIcon.setImageDrawable(uiUtilities.getIcon(R.drawable.ic_action_remove, removeIconColor));
- profileViewHolder.moveIcon.setOnTouchListener(new View.OnTouchListener() {
+ profileViewHolder.moveButton.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent event) {
if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_DOWN) {
@@ -479,6 +480,7 @@ public class EditProfilesFragment extends BaseOsmAndFragment {
ImageButton actionIcon;
ImageView moveIcon;
View itemsContainer;
+ FrameLayout moveButton;
ProfileViewHolder(View itemView) {
super(itemView);
@@ -487,6 +489,7 @@ public class EditProfilesFragment extends BaseOsmAndFragment {
actionIcon = itemView.findViewById(R.id.action_icon);
icon = itemView.findViewById(R.id.icon);
moveIcon = itemView.findViewById(R.id.move_icon);
+ moveButton = itemView.findViewById(R.id.move_button);
itemsContainer = itemView.findViewById(R.id.selectable_list_item);
}
diff --git a/OsmAnd/src/net/osmand/plus/settings/ConfigureMenuItemsFragment.java b/OsmAnd/src/net/osmand/plus/settings/ConfigureMenuItemsFragment.java
index 6d7ab4562d..6bba4b91e6 100644
--- a/OsmAnd/src/net/osmand/plus/settings/ConfigureMenuItemsFragment.java
+++ b/OsmAnd/src/net/osmand/plus/settings/ConfigureMenuItemsFragment.java
@@ -341,6 +341,9 @@ public class ConfigureMenuItemsFragment extends BaseOsmAndFragment
}
} else {
hiddenMenuItems.remove(id);
+ if (screenType == ScreenType.CONTEXT_MENU_ACTIONS && mainActionItems.size() < MAIN_BUTTONS_QUANTITY) {
+ mainActionItems.add(id);
+ }
}
wasReset = false;
isChanged = true;
diff --git a/OsmAnd/src/net/osmand/plus/settings/RearrangeMenuItemsAdapter.java b/OsmAnd/src/net/osmand/plus/settings/RearrangeMenuItemsAdapter.java
index fbbd880bf2..a365e684c8 100644
--- a/OsmAnd/src/net/osmand/plus/settings/RearrangeMenuItemsAdapter.java
+++ b/OsmAnd/src/net/osmand/plus/settings/RearrangeMenuItemsAdapter.java
@@ -155,7 +155,7 @@ public class RearrangeMenuItemsAdapter extends RecyclerView.Adapter