From 6a397ef34d3f0ff54867f1edccab340b72b191ce Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 8 Sep 2013 20:33:46 +0400 Subject: make ui more ~cards~ like, simplify some drawables --- AndroidManifest.xml | 4 +- res/drawable-hdpi/arrowhead_dark.png | Bin 279 -> 0 bytes res/drawable-hdpi/arrowhead_light.png | Bin 287 -> 0 bytes res/drawable-hdpi/arrowhead_sepia.png | Bin 1269 -> 0 bytes res/drawable/headline_row_selected_dark.xml | 13 -- res/drawable/headline_row_selected_gray.xml | 7 - res/drawable/headline_row_selected_light.xml | 11 -- res/drawable/headline_row_selected_sepia.xml | 11 -- res/drawable/headline_row_unread_gray.xml | 7 - res/drawable/headline_row_unread_light.xml | 7 - res/drawable/headline_row_unread_sepia.xml | 7 - res/layout/headlines_fragment.xml | 5 +- res/layout/headlines_row.xml | 203 +++++++++++---------- res/layout/headlines_row_selected.xml | 201 ++++++++++---------- res/layout/headlines_row_selected_unread.xml | 201 ++++++++++---------- res/layout/headlines_row_unread.xml | 201 ++++++++++---------- res/values-v11/style.xml | 26 +-- res/values/resources.xml | 8 +- res/values/style.xml | 26 +-- src/org/fox/ttrss/HeadlinesFragment.java | 4 +- .../ttrss/offline/OfflineHeadlinesFragment.java | 4 +- 21 files changed, 453 insertions(+), 493 deletions(-) delete mode 100644 res/drawable-hdpi/arrowhead_dark.png delete mode 100644 res/drawable-hdpi/arrowhead_light.png delete mode 100644 res/drawable-hdpi/arrowhead_sepia.png delete mode 100644 res/drawable/headline_row_selected_dark.xml delete mode 100644 res/drawable/headline_row_selected_gray.xml delete mode 100644 res/drawable/headline_row_selected_light.xml delete mode 100644 res/drawable/headline_row_selected_sepia.xml delete mode 100644 res/drawable/headline_row_unread_gray.xml delete mode 100644 res/drawable/headline_row_unread_light.xml delete mode 100644 res/drawable/headline_row_unread_sepia.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 76116c6c..e6c63139 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="197" + android:versionName="1.10" > - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_selected_gray.xml b/res/drawable/headline_row_selected_gray.xml deleted file mode 100644 index 17c6dce2..00000000 --- a/res/drawable/headline_row_selected_gray.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_selected_light.xml b/res/drawable/headline_row_selected_light.xml deleted file mode 100644 index 55e4bc54..00000000 --- a/res/drawable/headline_row_selected_light.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_selected_sepia.xml b/res/drawable/headline_row_selected_sepia.xml deleted file mode 100644 index 04d82723..00000000 --- a/res/drawable/headline_row_selected_sepia.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_unread_gray.xml b/res/drawable/headline_row_unread_gray.xml deleted file mode 100644 index cbaaed86..00000000 --- a/res/drawable/headline_row_unread_gray.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_unread_light.xml b/res/drawable/headline_row_unread_light.xml deleted file mode 100644 index d64bd7be..00000000 --- a/res/drawable/headline_row_unread_light.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/drawable/headline_row_unread_sepia.xml b/res/drawable/headline_row_unread_sepia.xml deleted file mode 100644 index a19a9559..00000000 --- a/res/drawable/headline_row_unread_sepia.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/layout/headlines_fragment.xml b/res/layout/headlines_fragment.xml index 58fa6694..d3effae6 100644 --- a/res/layout/headlines_fragment.xml +++ b/res/layout/headlines_fragment.xml @@ -2,13 +2,14 @@ + android:layout_height="fill_parent"> diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml index c8a9a0e7..c4ea2c76 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -1,126 +1,133 @@ - + android:paddingTop="6dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" > + android:layout_height="match_parent" + android:background="?headlineNormalBackground" + android:orientation="vertical" + android:padding="6dp" > - - - - + android:orientation="horizontal" + android:paddingLeft="6dp" > - + + - + android:orientation="horizontal" > - - + - + - + + + android:paddingLeft="6dp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineExcerptTextColor" + android:textSize="13sp" /> - + android:gravity="center_vertical" + android:paddingLeft="6dp" > - + - + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/res/layout/headlines_row_selected.xml b/res/layout/headlines_row_selected.xml index 34be5023..5cebee9d 100644 --- a/res/layout/headlines_row_selected.xml +++ b/res/layout/headlines_row_selected.xml @@ -1,127 +1,134 @@ - + android:layout_height="match_parent" + android:background="?headlineSelectedBackground" + android:orientation="vertical" + android:padding="6dp" > - - - - + android:orientation="horizontal" + android:paddingLeft="6dp" > - + + - + android:orientation="horizontal" > - - + - + - + + + android:paddingLeft="6dp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="13sp" /> - + android:gravity="center_vertical" + android:paddingLeft="6dp" > - + - + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/res/layout/headlines_row_selected_unread.xml b/res/layout/headlines_row_selected_unread.xml index 506fcbba..3cc7cbd9 100644 --- a/res/layout/headlines_row_selected_unread.xml +++ b/res/layout/headlines_row_selected_unread.xml @@ -1,127 +1,134 @@ - + android:layout_height="match_parent" + android:background="?headlineSelectedBackground" + android:orientation="vertical" + android:padding="6dp" > - - - - + android:orientation="horizontal" + android:paddingLeft="6dp" > - + + - + android:orientation="horizontal" > - - + - + - + + + android:paddingLeft="6dp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="13sp" /> - + android:gravity="center_vertical" + android:paddingLeft="6dp" > - + - + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/res/layout/headlines_row_unread.xml b/res/layout/headlines_row_unread.xml index 89537907..93fe4106 100644 --- a/res/layout/headlines_row_unread.xml +++ b/res/layout/headlines_row_unread.xml @@ -1,127 +1,134 @@ - + android:layout_height="match_parent" + android:background="?headlineUnreadBackground" + android:orientation="vertical" + android:padding="6dp" > - - - - + android:orientation="horizontal" + android:paddingLeft="6dp" > - + + - + android:orientation="horizontal" > - - + - + - + + + android:paddingLeft="6dp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineExcerptTextColor" + android:textSize="13sp" /> - + android:gravity="center_vertical" + android:paddingLeft="6dp" > - + - + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/res/values-v11/style.xml b/res/values-v11/style.xml index 6d5bde71..b1c0e4ef 100644 --- a/res/values-v11/style.xml +++ b/res/values-v11/style.xml @@ -7,10 +7,10 @@ @drawable/shadow_headlines #f0f0f0 @android:color/transparent - @drawable/headline_row_selected_light - @drawable/headline_row_unread_light - @android:color/transparent - @drawable/headline_row_selected_light + #88b0f0 + #ffffff + #f0f0f0 + #88b0f0 @android:color/primary_text_light #ffffff @android:color/secondary_text_light @@ -32,9 +32,9 @@ @drawable/shadow_feeds_sepia @drawable/shadow_headlines_sepia @drawable/paper_sepia - @drawable/headline_row_unread_sepia - @drawable/headline_row_selected_sepia - @drawable/headline_row_selected_sepia + #f2eae8 + #E5B0A0 + #E5B0A0 @drawable/paper_sepia @drawable/counter_background_sepia @drawable/counter_background_sepia @@ -51,10 +51,10 @@ @android:color/black @android:color/black @android:color/black - @drawable/headline_row_selected_dark + @color/ics_cyan #202020 - @android:color/transparent - @drawable/headline_row_selected_dark + #101010 + @color/ics_cyan @android:color/primary_text_dark @android:color/black @android:color/secondary_text_dark @@ -78,9 +78,9 @@ @drawable/shadow_headlines_gray @color/feeds_dark_gray @color/feeds_dark_gray - @drawable/headline_row_selected_gray - @drawable/headline_row_unread_gray - @drawable/headline_row_selected_gray + #22667f + #383c42 + #22667f @android:color/primary_text_dark @android:color/secondary_text_dark @android:color/secondary_text_dark diff --git a/res/values/resources.xml b/res/values/resources.xml index 134f7960..f32ec5b7 100644 --- a/res/values/resources.xml +++ b/res/values/resources.xml @@ -5,16 +5,10 @@ #ffffff #EAE2DC #D3C6BA - #88b0f0 - #E5B0A0 #33b5e5 - #1c1d1e - #22667f - #383c42 - #f0f0f0 - #F2EAE8 #88b0f0 #303030 #C46262 #4684ff + #1c1d1e \ No newline at end of file diff --git a/res/values/style.xml b/res/values/style.xml index d1123515..f46cdf73 100644 --- a/res/values/style.xml +++ b/res/values/style.xml @@ -7,10 +7,10 @@ @drawable/shadow_headlines #f0f0f0 @android:color/transparent - @drawable/headline_row_selected_light - @drawable/headline_row_unread_light - @android:color/transparent - @drawable/headline_row_selected_light + #88b0f0 + #ffffff + #f0f0f0 + #88b0f0 @android:color/primary_text_light #ffffff @android:color/secondary_text_light @@ -32,9 +32,9 @@ @drawable/shadow_feeds_sepia @drawable/shadow_headlines_sepia @drawable/paper_sepia - @drawable/headline_row_unread_sepia - @drawable/headline_row_selected_sepia - @drawable/headline_row_selected_sepia + #f2eae8 + #E5B0A0 + #E5B0A0 @drawable/paper_sepia @drawable/counter_background_sepia @drawable/counter_background_sepia @@ -51,10 +51,10 @@ @android:color/black @android:color/black @android:color/black - @drawable/headline_row_selected_dark + @color/ics_cyan #202020 - @android:color/transparent - @drawable/headline_row_selected_dark + #101010 + @color/ics_cyan @android:color/primary_text_dark @android:color/black @android:color/secondary_text_dark @@ -78,9 +78,9 @@ @drawable/shadow_headlines_gray @color/feeds_dark_gray @color/feeds_dark_gray - @drawable/headline_row_selected_gray - @drawable/headline_row_unread_gray - @drawable/headline_row_selected_gray + #22667f + #383c42 + #22667f @android:color/primary_text_dark @android:color/secondary_text_dark @android:color/secondary_text_dark diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index aacd2833..16a0f64d 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -299,8 +299,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, //list.setEmptyView(view.findViewById(R.id.no_headlines)); registerForContextMenu(list); - if (m_activity.isSmallScreen()) - view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); + //if (m_activity.isSmallScreen()) + //view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); Log.d(TAG, "onCreateView, feed=" + m_feed); diff --git a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index 1953c671..da929569 100644 --- a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -317,8 +317,8 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis list.setEmptyView(view.findViewById(R.id.no_headlines)); registerForContextMenu(list); - if (m_activity.isSmallScreen()) - view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); + //if (m_activity.isSmallScreen()) + // view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); getActivity().setProgressBarIndeterminateVisibility(false); -- cgit v1.2.3