mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Improve edit bookmark button on the place page
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -152,7 +152,7 @@ public class PlacePageView extends Fragment
|
||||
private View mEditTopSpace;
|
||||
private ShapeableImageView mColorIcon;
|
||||
private MaterialTextView mTvCategory;
|
||||
private ShapeableImageView mEditBookmark;
|
||||
private MaterialButton mEditBookmark;
|
||||
|
||||
// Data
|
||||
private CoordinatesFormat mCoordsFormat = CoordinatesFormat.LatLonDecimal;
|
||||
|
||||
@@ -59,8 +59,6 @@ public class PlacePageBookmarkFragment extends Fragment implements View.OnClickL
|
||||
mFrame = view;
|
||||
mTvBookmarkNote = mFrame.findViewById(R.id.tv__bookmark_notes);
|
||||
mTvBookmarkNote.setOnLongClickListener(this);
|
||||
final View editBookmarkBtn = mFrame.findViewById(R.id.tv__bookmark_edit);
|
||||
editBookmarkBtn.setOnClickListener(this);
|
||||
}
|
||||
|
||||
private void initWebView()
|
||||
|
||||
@@ -18,16 +18,6 @@
|
||||
android:textAppearance="?android:attr/textAppearance"
|
||||
tools:text="Long, long text Long, long text Long, long text Long, long text Long, long text Long, long text "/>
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tv__bookmark_edit"
|
||||
style="@style/PlacePageMetadataText.Button"
|
||||
android:gravity="center"
|
||||
android:layout_height="@dimen/height_block_base"
|
||||
android:background="?clickableBackground"
|
||||
android:paddingEnd="@dimen/margin_base"
|
||||
android:paddingStart="@dimen/margin_base"
|
||||
android:text="@string/placepage_edit_bookmark_button"/>
|
||||
|
||||
<include
|
||||
layout="@layout/divider_horizontal"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -217,17 +217,14 @@
|
||||
android:background="?clickableBackground"
|
||||
android:textAllCaps="false"
|
||||
tools:text="@string/categories" />
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/edit_Bookmark"
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
style="@style/MwmWidget.M3.Button.Secondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="@dimen/margin_base"
|
||||
android:background="?clickableBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:src="@drawable/ic_edit" />
|
||||
android:text="@string/edit"
|
||||
app:icon="@drawable/ic_edit" />
|
||||
</LinearLayout>
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/place_page_bookmark_fragment"
|
||||
|
||||
Reference in New Issue
Block a user