Преглед на файлове

New: add bookmark item to options menu

liweihao преди 5 години
родител
ревизия
853f3b694b

+ 6 - 0
reader/src/main/res/menu/reader_more.xml

@@ -1,6 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
 <menu xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:app="http://schemas.android.com/apk/res-auto">
+    <item
+        android:id="@+id/item_reader_bookmark"
+        android:icon="@drawable/ic_bookmark_border"
+        android:title="@string/reader_more_menu_bookmark"
+        app:showAsAction="ifRoom"
+        />
     <item
         android:id="@+id/item_reader_more_share"
         android:icon="@drawable/ic_share_black_op60_24dp"

+ 1 - 0
reader/src/main/res/values-zh-rTW/strings.xml

@@ -5,4 +5,5 @@
     <string name="reader_more_menu_print">列印</string>
     <string name="reader_more_menu_file_info">文件資訊</string>
     <string name="reader_more_menu_user_guide">使用指南</string>
+    <string name="reader_more_menu_bookmark">書籤</string>
 </resources>

+ 1 - 0
reader/src/main/res/values-zh/strings.xml

@@ -5,4 +5,5 @@
     <string name="reader_more_menu_print">打印</string>
     <string name="reader_more_menu_file_info">文件信息</string>
     <string name="reader_more_menu_user_guide">使用导航</string>
+    <string name="reader_more_menu_bookmark">书签</string>
 </resources>

+ 1 - 0
reader/src/main/res/values/strings.xml

@@ -1,6 +1,7 @@
 <resources>
     <string name="app_name" translatable="false">Reader</string>
 
+    <string name="reader_more_menu_bookmark">Bookmark</string>
     <string name="reader_more_menu_share">Share</string>
     <string name="reader_more_menu_text_reflow">Text Reflow</string>
     <string name="reader_more_menu_print">Print</string>