sepia theme fixes; update overflow icons to use modern holo style;
enable overflow icons for feed items
This commit is contained in:
parent
736c2233cf
commit
92d63150a0
BIN
res/drawable-hdpi/ic_action_overflow.png
Normal file
BIN
res/drawable-hdpi/ic_action_overflow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 274 B |
Binary file not shown.
Before Width: | Height: | Size: 350 B |
19
res/drawable/headline_row.xml
Normal file
19
res/drawable/headline_row.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#e0e0e0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#f0f0f0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
19
res/drawable/headline_row_selected.xml
Normal file
19
res/drawable/headline_row_selected.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#e0e0e0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#88b0f0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
19
res/drawable/headline_row_selected_sepia.xml
Normal file
19
res/drawable/headline_row_selected_sepia.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#d0d0d0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#E5B0A0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
19
res/drawable/headline_row_sepia.xml
Normal file
19
res/drawable/headline_row_sepia.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#d0d0d0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#f0f0f0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
19
res/drawable/headline_row_unread.xml
Normal file
19
res/drawable/headline_row_unread.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#e0e0e0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#ffffff" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
19
res/drawable/headline_row_unread_sepia.xml
Normal file
19
res/drawable/headline_row_unread_sepia.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#d0d0d0" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#ffffff" />
|
||||
<corners android:radius="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
@ -58,9 +58,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingTop="6dp"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
|
||||
</LinearLayout>
|
@ -58,9 +58,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingTop="6dp"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
|
||||
</LinearLayout>
|
@ -1,12 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/headlines_row"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="6dp"
|
||||
android:paddingTop="3dp" >
|
||||
android:paddingTop="3dp"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/inner_row"
|
||||
@ -14,7 +16,10 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="?headlineNormalBackground"
|
||||
android:orientation="vertical"
|
||||
android:padding="6dp" >
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="6dp"
|
||||
android:paddingTop="6dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout6"
|
||||
@ -117,17 +122,15 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:clickable="true"
|
||||
android:paddingRight="6dp"
|
||||
android:src="@drawable/ic_rss_bw" />
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="6dp"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="?headlineSelectedBackground"
|
||||
android:orientation="vertical"
|
||||
android:padding="6dp" >
|
||||
android:paddingTop="6dp" android:paddingLeft="6dp" android:paddingRight="6dp" android:paddingBottom="2dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout6"
|
||||
@ -117,17 +117,15 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:clickable="true"
|
||||
android:paddingRight="6dp"
|
||||
android:src="@drawable/ic_rss_bw" />
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="6dp"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="?headlineSelectedBackground"
|
||||
android:orientation="vertical"
|
||||
android:padding="6dp" >
|
||||
android:paddingTop="6dp" android:paddingLeft="6dp" android:paddingRight="6dp" android:paddingBottom="2dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout6"
|
||||
@ -118,17 +118,15 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:clickable="true"
|
||||
android:paddingRight="6dp"
|
||||
android:src="@drawable/ic_rss_bw" />
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="6dp"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="?headlineUnreadBackground"
|
||||
android:orientation="vertical"
|
||||
android:padding="6dp" >
|
||||
android:paddingTop="6dp" android:paddingLeft="6dp" android:paddingRight="6dp" android:paddingBottom="2dp" > >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout6"
|
||||
@ -118,17 +118,15 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:clickable="true"
|
||||
android:paddingRight="6dp"
|
||||
android:src="@drawable/ic_rss_bw" />
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:background="@null"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="6dp"
|
||||
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||
android:src="@drawable/ic_action_overflow" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -7,9 +7,9 @@
|
||||
<item name="headlinesBackground"><!-- #f0f0f0 -->@drawable/shadow_headlines</item>
|
||||
<item name="headlinesBackgroundSolid">#f0f0f0</item>
|
||||
<item name="articleBackground">@android:color/transparent</item>
|
||||
<item name="headlineSelectedBackground">#88b0f0</item>
|
||||
<item name="headlineUnreadBackground">#ffffff</item>
|
||||
<item name="headlineNormalBackground">#f0f0f0</item>
|
||||
<item name="headlineSelectedBackground">@drawable/headline_row_selected</item>
|
||||
<item name="headlineUnreadBackground">@drawable/headline_row_unread</item>
|
||||
<item name="headlineNormalBackground">@drawable/headline_row</item>
|
||||
<item name="feedsSelectedBackground">#88b0f0</item>
|
||||
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
||||
<item name="feedlistSelectedTextColor">#ffffff</item>
|
||||
@ -32,8 +32,9 @@
|
||||
<item name="feedlistBackground">@drawable/shadow_feeds_sepia</item>
|
||||
<item name="headlinesBackground">@drawable/shadow_headlines_sepia</item>
|
||||
<item name="headlinesBackgroundSolid">@drawable/paper_sepia</item>
|
||||
<item name="headlineUnreadBackground">#f2eae8</item> <!-- #F2EAE8 -->
|
||||
<item name="headlineSelectedBackground">#E5B0A0</item>
|
||||
<item name="headlineUnreadBackground">@drawable/headline_row_unread_sepia</item> <!-- #F2EAE8 -->
|
||||
<item name="headlineNormalBackground">@drawable/headline_row_sepia</item>
|
||||
<item name="headlineSelectedBackground">@drawable/headline_row_selected_sepia</item> <!-- #E5B0A0 -->
|
||||
<item name="feedsSelectedBackground">#E5B0A0</item>
|
||||
<item name="articleBackground">@drawable/paper_sepia</item>
|
||||
<item name="unreadCounterBackground">@drawable/counter_background_sepia</item>
|
||||
|
@ -415,9 +415,6 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -542,9 +542,6 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -795,13 +795,13 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
});
|
||||
}
|
||||
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
||||
ImageView iv = (ImageView) v.findViewById(R.id.article_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
if (iv != null) {
|
||||
//if (m_activity.isDarkTheme())
|
||||
// ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
iv.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
getActivity().openContextMenu(v);
|
||||
|
@ -288,9 +288,6 @@ public class OfflineFeedCategoriesFragment extends Fragment implements OnItemCli
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -322,9 +322,6 @@ public class OfflineFeedsFragment extends Fragment implements OnItemClickListene
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -645,11 +645,11 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
|
||||
});
|
||||
}
|
||||
|
||||
ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
||||
ImageView ib = (ImageView) v.findViewById(R.id.article_menu_button);
|
||||
|
||||
if (ib != null) {
|
||||
if (m_activity.isDarkTheme())
|
||||
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
//if (m_activity.isDarkTheme())
|
||||
// ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||
|
||||
ib.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user