diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index e922e56ba8..614c1dd0a5 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -848,7 +848,8 @@
+ android:label="@string/edit"
+ android:windowSoftInputMode="stateVisible"/>
diff --git a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategorySettingsFragment.java b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategorySettingsFragment.java
index bfaf7f0dd9..596b7d343e 100644
--- a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategorySettingsFragment.java
+++ b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategorySettingsFragment.java
@@ -9,6 +9,7 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -19,8 +20,10 @@ import app.organicmaps.bookmarks.data.BookmarkCategory;
import app.organicmaps.bookmarks.data.BookmarkManager;
import app.organicmaps.util.Utils;
+import app.organicmaps.util.InputUtils;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.textfield.TextInputEditText;
+import com.google.android.material.textfield.TextInputLayout;
import java.util.Objects;
@@ -63,14 +66,14 @@ public class BookmarkCategorySettingsFragment extends BaseMwmToolbarFragment
private void initViews(@NonNull View root)
{
mEditCategoryNameView = root.findViewById(R.id.edit_list_name_view);
+ TextInputLayout clearNameBtn = root.findViewById(R.id.edit_list_name_input);
+ clearNameBtn.setEndIconOnClickListener(v -> clearAndFocus(mEditCategoryNameView));
mEditCategoryNameView.setText(mCategory.getName());
InputFilter[] f = { new InputFilter.LengthFilter(TEXT_LENGTH_LIMIT) };
mEditCategoryNameView.setFilters(f);
mEditCategoryNameView.requestFocus();
mEditDescView = root.findViewById(R.id.edit_description);
mEditDescView.setText(mCategory.getDescription());
- View clearNameBtn = root.findViewById(R.id.edit_text_clear_btn);
- clearNameBtn.setOnClickListener(v -> mEditCategoryNameView.getEditableText().clear());
}
@Override
@@ -152,4 +155,11 @@ public class BookmarkCategorySettingsFragment extends BaseMwmToolbarFragment
String categoryDesc = getEditableCategoryDesc();
return !TextUtils.equals(mCategory.getDescription(), categoryDesc);
}
+
+ private void clearAndFocus(TextView textView)
+ {
+ textView.getEditableText().clear();
+ textView.requestFocus();
+ InputUtils.showKeyboard(textView);
+ }
}
diff --git a/android/app/src/main/res/drawable-hdpi/ic_clear_rounded.webp b/android/app/src/main/res/drawable-hdpi/ic_clear_rounded.webp
deleted file mode 100644
index c7a06b2a76..0000000000
Binary files a/android/app/src/main/res/drawable-hdpi/ic_clear_rounded.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-hdpi/ic_clear_rounded_night.webp b/android/app/src/main/res/drawable-hdpi/ic_clear_rounded_night.webp
deleted file mode 100644
index 0bc9336abb..0000000000
Binary files a/android/app/src/main/res/drawable-hdpi/ic_clear_rounded_night.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_clear_rounded.webp b/android/app/src/main/res/drawable-mdpi/ic_clear_rounded.webp
deleted file mode 100644
index 1cc403cd13..0000000000
Binary files a/android/app/src/main/res/drawable-mdpi/ic_clear_rounded.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_clear_rounded_night.webp b/android/app/src/main/res/drawable-mdpi/ic_clear_rounded_night.webp
deleted file mode 100644
index 9f171666ae..0000000000
Binary files a/android/app/src/main/res/drawable-mdpi/ic_clear_rounded_night.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded.webp b/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded.webp
deleted file mode 100644
index c33094b082..0000000000
Binary files a/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded_night.webp b/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded_night.webp
deleted file mode 100644
index 651f94ce68..0000000000
Binary files a/android/app/src/main/res/drawable-xhdpi/ic_clear_rounded_night.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded.webp b/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded.webp
deleted file mode 100644
index 1799bc300a..0000000000
Binary files a/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded_night.webp b/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded_night.webp
deleted file mode 100644
index c54cb57328..0000000000
Binary files a/android/app/src/main/res/drawable-xxhdpi/ic_clear_rounded_night.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded.webp b/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded.webp
deleted file mode 100644
index ab5bb3dfc0..0000000000
Binary files a/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded_night.webp b/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded_night.webp
deleted file mode 100644
index 7579e8a489..0000000000
Binary files a/android/app/src/main/res/drawable-xxxhdpi/ic_clear_rounded_night.webp and /dev/null differ
diff --git a/android/app/src/main/res/drawable/ic_clear_rounded.xml b/android/app/src/main/res/drawable/ic_clear_rounded.xml
new file mode 100644
index 0000000000..c1ae46a4c7
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_clear_rounded.xml
@@ -0,0 +1,11 @@
+
+
+
diff --git a/android/app/src/main/res/layout-land/fragment_osm_login.xml b/android/app/src/main/res/layout-land/fragment_osm_login.xml
index 19444d9602..7b61beab80 100644
--- a/android/app/src/main/res/layout-land/fragment_osm_login.xml
+++ b/android/app/src/main/res/layout-land/fragment_osm_login.xml
@@ -86,7 +86,9 @@
android:textColorHint="?android:textColorSecondary"
app:layout_constraintLeft_toRightOf="@id/osm_username_container"
app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent">
+ app:layout_constraintTop_toTopOf="parent"
+ app:endIconMode="password_toggle"
+ app:endIconTint="?android:textColorSecondary">
@@ -33,36 +34,36 @@
android:id="@+id/edit_name_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
+
-
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+
+ android:layout_height="wrap_content"
+ android:inputType="textMultiLine"/>
+
@drawable/ic_layers_subway_inactive
- @drawable/ic_layers_isoline_inactive
- @color/accent_color_selector
- - @drawable/ic_clear_rounded
- @style/TextAppearance
- @style/TextAppearance.Small
- @style/TextAppearance.Medium
@@ -228,7 +227,6 @@
- @drawable/ic_layers_subway_active_night
- @drawable/ic_layers_isoline_active_night
- @color/accent_color_selector_night
- - @drawable/ic_clear_rounded_night
- @style/TextAppearance
- @style/TextAppearance.Small
- @style/TextAppearance.Medium