From bc7e851b9a11655f9cbca91d301781c238c4d67e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 Jun 2012 00:35:53 +0400 Subject: [PATCH] add shadows to light theme, misc layout/theme tweaks --- res/drawable-hdpi/shadow_bitmap.png | Bin 0 -> 299 bytes res/drawable/shadow.xml | 5 ++ res/drawable/shadow_feeds.xml | 7 ++ res/drawable/shadow_headlines.xml | 7 ++ res/layout-port/headlines_row.xml | 7 -- res/layout-port/headlines_row_selected.xml | 7 -- res/layout-port/headlines_row_unread.xml | 9 +-- res/layout-xlarge-port/main.xml | 74 +++++++++--------- res/layout-xlarge/headlines_row.xml | 8 -- res/layout-xlarge/headlines_row_selected.xml | 7 -- res/layout-xlarge/headlines_row_unread.xml | 9 +-- res/layout-xlarge/main.xml | 59 +++++++------- res/layout/article_fragment.xml | 34 ++------ res/layout/feeds_fragment.xml | 3 +- res/layout/headlines_row.xml | 8 -- res/layout/headlines_row_selected.xml | 7 -- res/layout/headlines_row_unread.xml | 9 +-- res/values-v11/style.xml | 49 ------------ res/values-v14/style.xml | 26 +++--- res/values/attrs.xml | 2 + res/values/resources.xml | 7 ++ res/values/style.xml | 4 + src/org/fox/ttrss/ArticleFragment.java | 5 +- src/org/fox/ttrss/HeadlinesFragment.java | 4 +- src/org/fox/ttrss/MainActivity.java | 8 +- .../ttrss/offline/OfflineArticleFragment.java | 5 +- .../offline/OfflineHeadlinesFragment.java | 4 +- 27 files changed, 145 insertions(+), 229 deletions(-) create mode 100644 res/drawable-hdpi/shadow_bitmap.png create mode 100644 res/drawable/shadow.xml create mode 100644 res/drawable/shadow_feeds.xml create mode 100644 res/drawable/shadow_headlines.xml delete mode 100644 res/values-v11/style.xml create mode 100644 res/values/resources.xml diff --git a/res/drawable-hdpi/shadow_bitmap.png b/res/drawable-hdpi/shadow_bitmap.png new file mode 100644 index 0000000000000000000000000000000000000000..6fb8a2503e4a8a0519d3932428cb072e95754fe4 GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-mUKs7M+SzC{oH>NS%G}c0*}aI z1_r)^Ak4U9V)k30pk#?_L`iUdT1k0gQ7S_~VrE{6o}X)oLYc9ish)+obweyr(F#u& z$B+!?w=*5NnjHjK*qv1lCU^vhs2=>k-{>n7KcBF^>XpE0va4^#^;kU5jQGYBp7D^a z{KW%CTbqZh`4R~&oM{mWt^75K*6GrMc}Mhvp3KWyIW6n0|AC$vg2qX1I=!x%0lHU% z)}CQmqY*Zx$KLw=s%bzKqDQ-erZ8O%(!F}h=RjAI>&YLc)I$ztaD0e0s!}BZk_-D literal 0 HcmV?d00001 diff --git a/res/drawable/shadow.xml b/res/drawable/shadow.xml new file mode 100644 index 00000000..51670851 --- /dev/null +++ b/res/drawable/shadow.xml @@ -0,0 +1,5 @@ + + diff --git a/res/drawable/shadow_feeds.xml b/res/drawable/shadow_feeds.xml new file mode 100644 index 00000000..f43427c4 --- /dev/null +++ b/res/drawable/shadow_feeds.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/res/drawable/shadow_headlines.xml b/res/drawable/shadow_headlines.xml new file mode 100644 index 00000000..09e5aa6a --- /dev/null +++ b/res/drawable/shadow_headlines.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout-port/headlines_row.xml b/res/layout-port/headlines_row.xml index 223dfc0d..85710827 100644 --- a/res/layout-port/headlines_row.xml +++ b/res/layout-port/headlines_row.xml @@ -12,13 +12,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" > - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-xlarge/headlines_row.xml b/res/layout-xlarge/headlines_row.xml index 73e6b941..9a311ef9 100644 --- a/res/layout-xlarge/headlines_row.xml +++ b/res/layout-xlarge/headlines_row.xml @@ -14,14 +14,6 @@ android:gravity="center_vertical" android:orientation="horizontal" > - - - - - - - diff --git a/res/layout-xlarge/main.xml b/res/layout-xlarge/main.xml index 283e35ae..3278ff22 100644 --- a/res/layout-xlarge/main.xml +++ b/res/layout-xlarge/main.xml @@ -4,6 +4,37 @@ android:layout_height="fill_parent" > + + + + + + + + + + + + - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml index f884f8c2..16ae890a 100644 --- a/res/layout/article_fragment.xml +++ b/res/layout/article_fragment.xml @@ -3,17 +3,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > - - - - + - - + android:orientation="vertical" + android:padding="5sp" > + android:paddingBottom="5sp"> + android:textSize="16sp" /> + android:padding="5sp" > @@ -8,7 +9,7 @@ diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml index 26c7bc95..8b154777 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -14,14 +14,6 @@ android:gravity="center_vertical" android:orientation="horizontal" > - - - - - - - diff --git a/res/values-v11/style.xml b/res/values-v11/style.xml deleted file mode 100644 index 931bf629..00000000 --- a/res/values-v11/style.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/values-v14/style.xml b/res/values-v14/style.xml index afef40b4..222aea54 100644 --- a/res/values-v14/style.xml +++ b/res/values-v14/style.xml @@ -1,21 +1,23 @@ " + diff --git a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index 3688c3e4..46dd1e8a 100644 --- a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -364,11 +364,11 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis } } - ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator); + /* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator); if (separator != null && m_offlineServices.isSmallScreen()) { separator.setVisibility(View.GONE); - } + } */ TextView content = (TextView)v.findViewById(R.id.content);