Offline HTML Reader for Android
リビジョン | 2ef3c0ed097566a6607abbb15b06ffe3f5ae0ec8 (tree) |
---|---|
日時 | 2012-10-08 17:36:19 |
作者 | Kana Koda <kodakana@linu...> |
コミッター | Kana Koda |
HoneyComb以降では機能しない「選択してコピー」(シフトキーのエミュレーション)を隠すようにした。
@@ -39,7 +39,7 @@ public final class R { | ||
39 | 39 | public static final int main=0x7f030001; |
40 | 40 | } |
41 | 41 | public static final class string { |
42 | - public static final int about=0x7f060034; | |
42 | + public static final int about=0x7f06003b; | |
43 | 43 | public static final int address=0x7f060005; |
44 | 44 | public static final int app_author=0x7f060006; |
45 | 45 | public static final int app_copy=0x7f060008; |
@@ -48,14 +48,14 @@ public final class R { | ||
48 | 48 | public static final int app_name=0x7f060001; |
49 | 49 | public static final int app_ver=0x7f060004; |
50 | 50 | public static final int back=0x7f06001a; |
51 | - public static final int behaviour=0x7f060033; | |
51 | + public static final int behaviour=0x7f06003a; | |
52 | 52 | public static final int bottom=0x7f06000d; |
53 | 53 | public static final int buttons=0x7f060015; |
54 | 54 | public static final int close=0x7f060010; |
55 | 55 | public static final int copy=0x7f060007; |
56 | - public static final int display=0x7f060032; | |
57 | - public static final int err_404=0x7f060035; | |
58 | - public static final int err_500=0x7f060036; | |
56 | + public static final int display=0x7f060039; | |
57 | + public static final int err_404=0x7f06003c; | |
58 | + public static final int err_500=0x7f06003d; | |
59 | 59 | public static final int etc=0x7f060011; |
60 | 60 | public static final int find=0x7f060014; |
61 | 61 | public static final int first=0x7f060021; |
@@ -66,7 +66,7 @@ public final class R { | ||
66 | 66 | public static final int index=0x7f060013; |
67 | 67 | public static final int info_restart=0x7f06002f; |
68 | 68 | public static final int license=0x7f060009; |
69 | - public static final int loading=0x7f060037; | |
69 | + public static final int loading=0x7f06003e; | |
70 | 70 | public static final int m_next=0x7f060018; |
71 | 71 | public static final int m_prev=0x7f060017; |
72 | 72 | public static final int match=0x7f06001c; |
@@ -75,7 +75,7 @@ public final class R { | ||
75 | 75 | public static final int pgdn=0x7f060020; |
76 | 76 | public static final int pgup=0x7f06001f; |
77 | 77 | public static final int pref_button=0x7f060025; |
78 | - public static final int pref_cache=0x7f060031; | |
78 | + public static final int pref_cache=0x7f060038; | |
79 | 79 | public static final int pref_font=0x7f060026; |
80 | 80 | public static final int pref_image=0x7f060028; |
81 | 81 | public static final int pref_restart=0x7f06002d; |
@@ -85,6 +85,13 @@ public final class R { | ||
85 | 85 | public static final int pref_title_desc=0x7f06002c; |
86 | 86 | public static final int pref_titlebar=0x7f060024; |
87 | 87 | public static final int pref_vol=0x7f060030; |
88 | + public static final int pref_vol_def=0x7f060031; | |
89 | + public static final int pref_vol_fns=0x7f060035; | |
90 | + public static final int pref_vol_fns_v11=0x7f060036; | |
91 | + public static final int pref_vol_iof=0x7f060037; | |
92 | + public static final int pref_vol_nop=0x7f060033; | |
93 | + public static final int pref_vol_scl=0x7f060032; | |
94 | + public static final int pref_vol_zoom=0x7f060034; | |
88 | 95 | public static final int pref_wide=0x7f06002a; |
89 | 96 | public static final int pref_zoom=0x7f060029; |
90 | 97 | public static final int prefs=0x7f06000f; |
@@ -50,6 +50,13 @@ | ||
50 | 50 | <string name="pref_restart_desc">タイトルバーの設定を反映するために自動的に再起動するかどうか。</string> |
51 | 51 | <string name="info_restart">設定を反映するために自動的に再起動します。</string> |
52 | 52 | <string name="pref_vol">音量キー</string> |
53 | + <string name="pref_vol_def">割り当てなし</string> | |
54 | + <string name="pref_vol_scl">スクロール</string> | |
55 | + <string name="pref_vol_nop">前後のファイルへ</string> | |
56 | + <string name="pref_vol_zoom">拡大/縮小</string> | |
57 | + <string name="pref_vol_fns">検索/選択</string> | |
58 | + <string name="pref_vol_fns_v11">検索</string> | |
59 | + <string name="pref_vol_iof">目次/進む</string> | |
53 | 60 | <string name="pref_cache">閉じるときにキャッシュを削除する</string> |
54 | 61 | <string name="display">表示</string> |
55 | 62 | <string name="behaviour">動作</string> |
@@ -33,12 +33,12 @@ | ||
33 | 33 | <item>32</item> |
34 | 34 | </string-array> |
35 | 35 | <string-array name="vol_func_labels"> |
36 | - <item>割り当てなし</item> | |
37 | - <item>スクロール</item> | |
38 | - <item>前後のファイルへ</item> | |
39 | - <item>拡大/縮小</item> | |
40 | - <item>検索/選択</item> | |
41 | - <item>目次/進む</item> | |
36 | + <item>@string/pref_vol_def</item> | |
37 | + <item>@string/pref_vol_scl</item> | |
38 | + <item>@string/pref_vol_nop</item> | |
39 | + <item>@string/pref_vol_zoom</item> | |
40 | + <item>@string/pref_vol_fns_v11</item> | |
41 | + <item>@string/pref_vol_iof</item> | |
42 | 42 | </string-array> |
43 | 43 | <string-array name="vol_func_values"> |
44 | 44 | <item>0</item> |
@@ -48,5 +48,4 @@ | ||
48 | 48 | <item>4</item> |
49 | 49 | <item>5</item> |
50 | 50 | </string-array> |
51 | - | |
52 | 51 | </resources> |
\ No newline at end of file |
@@ -33,12 +33,12 @@ | ||
33 | 33 | <item>32</item> |
34 | 34 | </string-array> |
35 | 35 | <string-array name="vol_func_labels"> |
36 | - <item>Default</item> | |
37 | - <item>Page scroll</item> | |
38 | - <item>Go to next/prev</item> | |
39 | - <item>Zoom in/out</item> | |
40 | - <item>Find/Select</item> | |
41 | - <item>Index/Forward</item> | |
36 | + <item>@string/pref_vol_def</item> | |
37 | + <item>@string/pref_vol_scl</item> | |
38 | + <item>@string/pref_vol_nop</item> | |
39 | + <item>@string/pref_vol_zoom</item> | |
40 | + <item>@string/pref_vol_fns</item> | |
41 | + <item>@string/pref_vol_iof</item> | |
42 | 42 | </string-array> |
43 | 43 | <string-array name="vol_func_values"> |
44 | 44 | <item>0</item> |
@@ -50,6 +50,13 @@ | ||
50 | 50 | <string name="pref_restart_desc">Or automatically restarted in take to effect the setting of the title bar.</string> |
51 | 51 | <string name="info_restart">Are automatically restarted in take to effect the setting.</string> |
52 | 52 | <string name="pref_vol">Volume Key</string> |
53 | + <string name="pref_vol_def">Default</string> | |
54 | + <string name="pref_vol_scl">Page scroll</string> | |
55 | + <string name="pref_vol_nop">Go to next/prev</string> | |
56 | + <string name="pref_vol_zoom">Zoom in/out</string> | |
57 | + <string name="pref_vol_fns">Find/Select</string> | |
58 | + <string name="pref_vol_fns_v11">Find</string> | |
59 | + <string name="pref_vol_iof">Index/Forward</string> | |
53 | 60 | <string name="pref_cache">To delete cache when close</string> |
54 | 61 | <string name="display">Display</string> |
55 | 62 | <string name="behaviour">Behaviour</string> |
@@ -19,6 +19,7 @@ import android.content.Intent; | ||
19 | 19 | import android.content.SharedPreferences; |
20 | 20 | import android.content.res.Configuration; |
21 | 21 | import android.net.Uri; |
22 | +import android.os.Build; | |
22 | 23 | import android.os.Bundle; |
23 | 24 | import android.os.Environment; |
24 | 25 | import android.preference.PreferenceManager; |
@@ -566,8 +567,10 @@ public class UnnetBrowserActivity extends Activity { | ||
566 | 567 | // sbmn1.setIcon(android.R.drawable.ic_menu_more); |
567 | 568 | // sbmn1.clearHeader(); |
568 | 569 | // sbmn1.setQwertyMode(true); |
569 | - MenuItem mnitm4 = menu.add(0, MENU_CPY, 0, R.string.select); | |
570 | - mnitm4.setAlphabeticShortcut('c'); | |
570 | + if (Build.VERSION.SDK_INT <= 10){ | |
571 | + MenuItem mnitm4 = menu.add(0, MENU_CPY, 0, R.string.select); | |
572 | + mnitm4.setAlphabeticShortcut('c'); | |
573 | + } | |
571 | 574 | MenuItem mnitm5 = menu.add(0, MENU_FND, 0, R.string.find); |
572 | 575 | mnitm5.setAlphabeticShortcut('f'); |
573 | 576 | MenuItem mnitm7 = menu.add(0, MENU_FSC, 0, R.string.fullscreen); |
@@ -757,7 +760,13 @@ public class UnnetBrowserActivity extends Activity { | ||
757 | 760 | webview.zoomOut(); |
758 | 761 | return true; |
759 | 762 | } else if (volkey == 4){ |
760 | - shiftDown(); | |
763 | + if (Build.VERSION.SDK_INT <= 10){ | |
764 | + shiftDown(); | |
765 | + } else { | |
766 | + edittext1.selectAll(); | |
767 | + showFinder(); | |
768 | + mode_find = true; | |
769 | + } | |
761 | 770 | return true; |
762 | 771 | } else if (volkey == 5){ |
763 | 772 | if (webview.canGoForward()){ |