mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add popup menu in nearby info dialog
This commit is contained in:
parent
95ecfbd3c2
commit
4823486139
7 changed files with 95 additions and 8 deletions
9
app/src/main/res/drawable/ic_more_vert_white_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_more_vert_white_24dp.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/>
|
||||
</vector>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:minHeight="64dp">
|
||||
|
||||
<TextView
|
||||
|
|
@ -52,6 +52,16 @@
|
|||
android:textColor="@android:color/black"
|
||||
android:textSize="20sp"
|
||||
tools:text="Lorem ipsum" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/link_preview_overflow_button"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="12dp"
|
||||
android:background="@android:color/white"
|
||||
android:contentDescription="@string/abc_action_menu_overflow_description"
|
||||
app:srcCompat="@drawable/ic_more_vert_white_24dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
|
|
|||
9
app/src/main/res/menu/nearby_info_dialog_options.xml
Normal file
9
app/src/main/res/menu/nearby_info_dialog_options.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@+id/nearby_info_menu_commons_article"
|
||||
android:title="@string/nearby_info_menu_commons_article"
|
||||
/>
|
||||
<item android:id="@+id/nearby_info_menu_wikidata_article"
|
||||
android:title="@string/nearby_info_menu_wikidata_article"
|
||||
/>
|
||||
</menu>
|
||||
|
|
@ -195,4 +195,7 @@ Tap this message (or hit back) to skip this step.</string>
|
|||
<string name="navigation_item_settings">Settings</string>
|
||||
<string name="navigation_item_feedback">Feedback</string>
|
||||
<string name="navigation_item_logout">Logout</string>
|
||||
|
||||
<string name="nearby_info_menu_commons_article">Commons Article</string>
|
||||
<string name="nearby_info_menu_wikidata_article">WikiData Article</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue