initial support for better holo icons
@ -34,6 +34,7 @@
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".FeedsActivity"
|
||||
android:uiOptions="splitActionBarWhenNarrow"
|
||||
android:label="@string/app_name" >
|
||||
</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
|
||||
android:id="@+id/selection_toggle_unread"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/selection_toggle_unread"/>
|
||||
|
||||
|
@ -13,52 +13,50 @@
|
||||
|
||||
<item
|
||||
android:id="@+id/subscribe_to_feed"
|
||||
android:icon="@android:drawable/ic_menu_add"
|
||||
android:showAsAction=""
|
||||
android:icon="@drawable/ic_new_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/subscribe_to_feed"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/show_feeds"
|
||||
android:icon="@android:drawable/ic_menu_agenda"
|
||||
android:showAsAction=""
|
||||
android:icon="@drawable/ic_list_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_all_feeds"/>
|
||||
<item
|
||||
android:id="@+id/update_feeds"
|
||||
android:icon="@android:drawable/ic_menu_rotate"
|
||||
android:icon="@drawable/ic_refresh_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/update_feeds"/>
|
||||
<item
|
||||
android:id="@+id/go_offline"
|
||||
android:icon="@drawable/ic_menu_cloud"
|
||||
android:showAsAction=""
|
||||
android:title="@string/go_offline"/>
|
||||
<item
|
||||
android:id="@+id/logout"
|
||||
android:icon="@drawable/ic_menu_exit"
|
||||
android:showAsAction=""
|
||||
android:title="@string/logout"/>
|
||||
</group>
|
||||
<group android:id="@+id/menu_group_headlines" >
|
||||
<item
|
||||
android:id="@+id/update_headlines"
|
||||
android:icon="@android:drawable/ic_menu_rotate"
|
||||
android:icon="@drawable/ic_refresh_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/update_headlines"/>
|
||||
<item
|
||||
android:id="@+id/search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
android:icon="@android:drawable/ic_menu_search"
|
||||
android:icon="@drawable/ic_search_light"
|
||||
android:showAsAction="ifRoom|collapseActionView"
|
||||
android:title="@string/search"/>
|
||||
<item
|
||||
android:id="@+id/headlines_mark_as_read"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:showAsAction=""
|
||||
android:icon="@drawable/ic_accept_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/headlines_mark_as_read"/>
|
||||
<item
|
||||
android:id="@+id/headlines_select"
|
||||
android:icon="@drawable/ic_menu_database"
|
||||
android:showAsAction=""
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_select_all_light"
|
||||
android:title="@string/headlines_select"/>
|
||||
|
||||
<item
|
||||
@ -79,7 +77,6 @@
|
||||
<group android:id="@+id/menu_group_headlines_selection" >
|
||||
<item
|
||||
android:id="@+id/selection_toggle_unread"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/selection_toggle_unread"/>
|
||||
<item
|
||||
@ -118,20 +115,20 @@
|
||||
android:id="@+id/share_article"
|
||||
android:actionProviderClass="android.widget.ShareActionProvider"
|
||||
android:icon="@android:drawable/ic_menu_share"
|
||||
android:showAsAction=""
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/share_article"/>
|
||||
<item
|
||||
android:id="@+id/set_unread"
|
||||
android:icon="@android:drawable/ic_menu_recent_history"
|
||||
android:showAsAction=""
|
||||
android:icon="@drawable/ic_undo_light"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/article_set_unread"/>
|
||||
<item
|
||||
android:id="@+id/catchup_above"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:title="@string/article_mark_read_above"/>
|
||||
<item
|
||||
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"/>
|
||||
<item
|
||||
android:id="@+id/article_set_note"
|
||||
|
@ -3,7 +3,6 @@
|
||||
<group android:id="@+id/menu_group_feeds" >
|
||||
<item
|
||||
android:id="@+id/go_online"
|
||||
android:icon="@drawable/ic_menu_cloud"
|
||||
android:showAsAction="ifRoom|withText"
|
||||
android:title="@string/go_online"
|
||||
android:visible="false"/>
|
||||
@ -23,11 +22,6 @@
|
||||
android:title="@string/menu_all_feeds"/>
|
||||
</group>
|
||||
<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
|
||||
android:id="@+id/search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
@ -36,11 +30,9 @@
|
||||
android:title="@string/search"/>
|
||||
<item
|
||||
android:id="@+id/headlines_mark_as_read"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:title="@string/headlines_mark_as_read"/>
|
||||
<item
|
||||
android:id="@+id/headlines_select"
|
||||
android:icon="@drawable/ic_menu_database"
|
||||
android:showAsAction=""
|
||||
android:title="@string/headlines_select"/>
|
||||
<!-- <item
|
||||
@ -52,7 +44,6 @@
|
||||
<group android:id="@+id/menu_group_headlines_selection" >
|
||||
<item
|
||||
android:id="@+id/selection_toggle_unread"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/selection_toggle_unread"/>
|
||||
<item
|
||||
@ -95,7 +86,6 @@
|
||||
android:title="@string/article_set_unread"/>
|
||||
<item
|
||||
android:id="@+id/catchup_above"
|
||||
android:icon="@drawable/ic_menu_tick"
|
||||
android:title="@string/article_mark_read_above"/>
|
||||
<!-- <item
|
||||
android:id="@+id/close_article"
|
||||
|
@ -16,6 +16,7 @@ import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Typeface;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
@ -113,6 +114,8 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
else
|
||||
titleStr = m_article.title;
|
||||
|
||||
|
||||
title.setTypeface(null, m_article.unread ? Typeface.BOLD : Typeface.NORMAL);
|
||||
title.setText(Html.fromHtml(titleStr));
|
||||
//title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
|
||||
title.setOnClickListener(new OnClickListener() {
|
||||
|
@ -30,6 +30,11 @@ public class CommonActivity extends FragmentActivity {
|
||||
|
||||
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) {
|
||||
Log.d(TAG, "m_smallScreenMode=" + smallScreen);
|
||||
m_smallScreenMode = smallScreen;
|
||||
|