mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03: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 View mEditTopSpace;
|
||||||
private ShapeableImageView mColorIcon;
|
private ShapeableImageView mColorIcon;
|
||||||
private MaterialTextView mTvCategory;
|
private MaterialTextView mTvCategory;
|
||||||
private ShapeableImageView mEditBookmark;
|
private MaterialButton mEditBookmark;
|
||||||
|
|
||||||
// Data
|
// Data
|
||||||
private CoordinatesFormat mCoordsFormat = CoordinatesFormat.LatLonDecimal;
|
private CoordinatesFormat mCoordsFormat = CoordinatesFormat.LatLonDecimal;
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ public class PlacePageBookmarkFragment extends Fragment implements View.OnClickL
|
|||||||
mFrame = view;
|
mFrame = view;
|
||||||
mTvBookmarkNote = mFrame.findViewById(R.id.tv__bookmark_notes);
|
mTvBookmarkNote = mFrame.findViewById(R.id.tv__bookmark_notes);
|
||||||
mTvBookmarkNote.setOnLongClickListener(this);
|
mTvBookmarkNote.setOnLongClickListener(this);
|
||||||
final View editBookmarkBtn = mFrame.findViewById(R.id.tv__bookmark_edit);
|
|
||||||
editBookmarkBtn.setOnClickListener(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initWebView()
|
private void initWebView()
|
||||||
|
|||||||
@@ -18,16 +18,6 @@
|
|||||||
android:textAppearance="?android:attr/textAppearance"
|
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 "/>
|
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
|
<include
|
||||||
layout="@layout/divider_horizontal"/>
|
layout="@layout/divider_horizontal"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -217,17 +217,14 @@
|
|||||||
android:background="?clickableBackground"
|
android:background="?clickableBackground"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
tools:text="@string/categories" />
|
tools:text="@string/categories" />
|
||||||
<com.google.android.material.imageview.ShapeableImageView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/edit_Bookmark"
|
android:id="@+id/edit_Bookmark"
|
||||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
style="@style/MwmWidget.M3.Button.Secondary"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_margin="@dimen/margin_base"
|
android:layout_margin="@dimen/margin_base"
|
||||||
android:background="?clickableBackground"
|
android:text="@string/edit"
|
||||||
android:clickable="true"
|
app:icon="@drawable/ic_edit" />
|
||||||
android:focusable="true"
|
|
||||||
android:src="@drawable/ic_edit" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<androidx.fragment.app.FragmentContainerView
|
<androidx.fragment.app.FragmentContainerView
|
||||||
android:id="@+id/place_page_bookmark_fragment"
|
android:id="@+id/place_page_bookmark_fragment"
|
||||||
|
|||||||
Reference in New Issue
Block a user