initial support for better holo icons
@ -34,6 +34,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".FeedsActivity"
|
android:name=".FeedsActivity"
|
||||||
|
android:uiOptions="splitActionBarWhenNarrow"
|
||||||
android:label="@string/app_name" >
|
android:label="@string/app_name" >
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
|
BIN
res/drawable-hdpi/ic_accept_dark.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-hdpi/ic_accept_light.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-hdpi/ic_cloud_dark.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/ic_cloud_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/ic_important_dark.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_important_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_labels_dark.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_labels_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_list_dark.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-hdpi/ic_list_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.2 KiB |
BIN
res/drawable-hdpi/ic_new_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-hdpi/ic_new_light.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-hdpi/ic_refresh_dark.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable-hdpi/ic_refresh_light.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable-hdpi/ic_rotate_left_dark.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-hdpi/ic_rotate_left_light.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-hdpi/ic_search_dark.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_search_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-hdpi/ic_select_all_dark.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-hdpi/ic_select_all_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/ic_undo_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-hdpi/ic_undo_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-hdpi/ic_unimportant_dark.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
res/drawable-hdpi/ic_unimportant_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-xhdpi/ic_accept_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/ic_cloud_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/ic_important_light.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-xhdpi/ic_labels_light.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
res/drawable-xhdpi/ic_list_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-xhdpi/ic_new_light.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-xhdpi/ic_refresh_light.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable-xhdpi/ic_rotate_left_light.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
res/drawable-xhdpi/ic_search_light.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
res/drawable-xhdpi/ic_select_all_light.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-xhdpi/ic_undo_light.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-xhdpi/ic_unimportant_light.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/selection_toggle_unread"
|
android:id="@+id/selection_toggle_unread"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/selection_toggle_unread"/>
|
android:title="@string/selection_toggle_unread"/>
|
||||||
|
|
||||||
|
@ -13,52 +13,50 @@
|
|||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/subscribe_to_feed"
|
android:id="@+id/subscribe_to_feed"
|
||||||
android:icon="@android:drawable/ic_menu_add"
|
android:icon="@drawable/ic_new_light"
|
||||||
android:showAsAction=""
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/subscribe_to_feed"/>
|
android:title="@string/subscribe_to_feed"/>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/show_feeds"
|
android:id="@+id/show_feeds"
|
||||||
android:icon="@android:drawable/ic_menu_agenda"
|
android:icon="@drawable/ic_list_light"
|
||||||
android:showAsAction=""
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/menu_all_feeds"/>
|
android:title="@string/menu_all_feeds"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/update_feeds"
|
android:id="@+id/update_feeds"
|
||||||
android:icon="@android:drawable/ic_menu_rotate"
|
android:icon="@drawable/ic_refresh_light"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/update_feeds"/>
|
android:title="@string/update_feeds"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/go_offline"
|
android:id="@+id/go_offline"
|
||||||
android:icon="@drawable/ic_menu_cloud"
|
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/go_offline"/>
|
android:title="@string/go_offline"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/logout"
|
android:id="@+id/logout"
|
||||||
android:icon="@drawable/ic_menu_exit"
|
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/logout"/>
|
android:title="@string/logout"/>
|
||||||
</group>
|
</group>
|
||||||
<group android:id="@+id/menu_group_headlines" >
|
<group android:id="@+id/menu_group_headlines" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/update_headlines"
|
android:id="@+id/update_headlines"
|
||||||
android:icon="@android:drawable/ic_menu_rotate"
|
android:icon="@drawable/ic_refresh_light"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/update_headlines"/>
|
android:title="@string/update_headlines"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/search"
|
android:id="@+id/search"
|
||||||
android:actionViewClass="android.widget.SearchView"
|
android:actionViewClass="android.widget.SearchView"
|
||||||
android:icon="@android:drawable/ic_menu_search"
|
android:icon="@drawable/ic_search_light"
|
||||||
android:showAsAction="ifRoom|collapseActionView"
|
android:showAsAction="ifRoom|collapseActionView"
|
||||||
android:title="@string/search"/>
|
android:title="@string/search"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/headlines_mark_as_read"
|
android:id="@+id/headlines_mark_as_read"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
android:icon="@drawable/ic_accept_light"
|
||||||
android:showAsAction=""
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/headlines_mark_as_read"/>
|
android:title="@string/headlines_mark_as_read"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/headlines_select"
|
android:id="@+id/headlines_select"
|
||||||
android:icon="@drawable/ic_menu_database"
|
android:showAsAction="ifRoom"
|
||||||
android:showAsAction=""
|
android:icon="@drawable/ic_select_all_light"
|
||||||
android:title="@string/headlines_select"/>
|
android:title="@string/headlines_select"/>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
@ -79,7 +77,6 @@
|
|||||||
<group android:id="@+id/menu_group_headlines_selection" >
|
<group android:id="@+id/menu_group_headlines_selection" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/selection_toggle_unread"
|
android:id="@+id/selection_toggle_unread"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/selection_toggle_unread"/>
|
android:title="@string/selection_toggle_unread"/>
|
||||||
<item
|
<item
|
||||||
@ -118,20 +115,20 @@
|
|||||||
android:id="@+id/share_article"
|
android:id="@+id/share_article"
|
||||||
android:actionProviderClass="android.widget.ShareActionProvider"
|
android:actionProviderClass="android.widget.ShareActionProvider"
|
||||||
android:icon="@android:drawable/ic_menu_share"
|
android:icon="@android:drawable/ic_menu_share"
|
||||||
android:showAsAction=""
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/share_article"/>
|
android:title="@string/share_article"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/set_unread"
|
android:id="@+id/set_unread"
|
||||||
android:icon="@android:drawable/ic_menu_recent_history"
|
android:icon="@drawable/ic_undo_light"
|
||||||
android:showAsAction=""
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/article_set_unread"/>
|
android:title="@string/article_set_unread"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/catchup_above"
|
android:id="@+id/catchup_above"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:title="@string/article_mark_read_above"/>
|
android:title="@string/article_mark_read_above"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/set_labels"
|
android:id="@+id/set_labels"
|
||||||
android:icon="@drawable/ic_menu_marked"
|
android:showAsAction="ifRoom"
|
||||||
|
android:icon="@drawable/ic_labels_light"
|
||||||
android:title="@string/article_set_labels"/>
|
android:title="@string/article_set_labels"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/article_set_note"
|
android:id="@+id/article_set_note"
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
<group android:id="@+id/menu_group_feeds" >
|
<group android:id="@+id/menu_group_feeds" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/go_online"
|
android:id="@+id/go_online"
|
||||||
android:icon="@drawable/ic_menu_cloud"
|
|
||||||
android:showAsAction="ifRoom|withText"
|
android:showAsAction="ifRoom|withText"
|
||||||
android:title="@string/go_online"
|
android:title="@string/go_online"
|
||||||
android:visible="false"/>
|
android:visible="false"/>
|
||||||
@ -23,11 +22,6 @@
|
|||||||
android:title="@string/menu_all_feeds"/>
|
android:title="@string/menu_all_feeds"/>
|
||||||
</group>
|
</group>
|
||||||
<group android:id="@+id/menu_group_headlines" >
|
<group android:id="@+id/menu_group_headlines" >
|
||||||
<!-- <item
|
|
||||||
android:id="@+id/go_online"
|
|
||||||
android:icon="@drawable/ic_menu_cloud"
|
|
||||||
android:title="@string/go_online"
|
|
||||||
android:visible="false"/> -->
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/search"
|
android:id="@+id/search"
|
||||||
android:actionViewClass="android.widget.SearchView"
|
android:actionViewClass="android.widget.SearchView"
|
||||||
@ -36,11 +30,9 @@
|
|||||||
android:title="@string/search"/>
|
android:title="@string/search"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/headlines_mark_as_read"
|
android:id="@+id/headlines_mark_as_read"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:title="@string/headlines_mark_as_read"/>
|
android:title="@string/headlines_mark_as_read"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/headlines_select"
|
android:id="@+id/headlines_select"
|
||||||
android:icon="@drawable/ic_menu_database"
|
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/headlines_select"/>
|
android:title="@string/headlines_select"/>
|
||||||
<!-- <item
|
<!-- <item
|
||||||
@ -52,7 +44,6 @@
|
|||||||
<group android:id="@+id/menu_group_headlines_selection" >
|
<group android:id="@+id/menu_group_headlines_selection" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/selection_toggle_unread"
|
android:id="@+id/selection_toggle_unread"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/selection_toggle_unread"/>
|
android:title="@string/selection_toggle_unread"/>
|
||||||
<item
|
<item
|
||||||
@ -95,7 +86,6 @@
|
|||||||
android:title="@string/article_set_unread"/>
|
android:title="@string/article_set_unread"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/catchup_above"
|
android:id="@+id/catchup_above"
|
||||||
android:icon="@drawable/ic_menu_tick"
|
|
||||||
android:title="@string/article_mark_read_above"/>
|
android:title="@string/article_mark_read_above"/>
|
||||||
<!-- <item
|
<!-- <item
|
||||||
android:id="@+id/close_article"
|
android:id="@+id/close_article"
|
||||||
|
@ -16,6 +16,7 @@ import android.annotation.SuppressLint;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.graphics.Typeface;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
@ -113,6 +114,8 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
|||||||
else
|
else
|
||||||
titleStr = m_article.title;
|
titleStr = m_article.title;
|
||||||
|
|
||||||
|
|
||||||
|
title.setTypeface(null, m_article.unread ? Typeface.BOLD : Typeface.NORMAL);
|
||||||
title.setText(Html.fromHtml(titleStr));
|
title.setText(Html.fromHtml(titleStr));
|
||||||
//title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
|
//title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
|
||||||
title.setOnClickListener(new OnClickListener() {
|
title.setOnClickListener(new OnClickListener() {
|
||||||
|
@ -30,6 +30,11 @@ public class CommonActivity extends FragmentActivity {
|
|||||||
|
|
||||||
protected SharedPreferences m_prefs;
|
protected SharedPreferences m_prefs;
|
||||||
|
|
||||||
|
protected boolean isDarkTheme() {
|
||||||
|
return m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK") ||
|
||||||
|
m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK_GRAY");
|
||||||
|
}
|
||||||
|
|
||||||
protected void setSmallScreen(boolean smallScreen) {
|
protected void setSmallScreen(boolean smallScreen) {
|
||||||
Log.d(TAG, "m_smallScreenMode=" + smallScreen);
|
Log.d(TAG, "m_smallScreenMode=" + smallScreen);
|
||||||
m_smallScreenMode = smallScreen;
|
m_smallScreenMode = smallScreen;
|
||||||
|