add shadows to light theme, misc layout/theme tweaks
This commit is contained in:
parent
15e0e4ec0d
commit
bc7e851b9a
BIN
res/drawable-hdpi/shadow_bitmap.png
Normal file
BIN
res/drawable-hdpi/shadow_bitmap.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 299 B |
5
res/drawable/shadow.xml
Normal file
5
res/drawable/shadow.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<bitmap
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:src="@drawable/shadow_bitmap"
|
||||||
|
android:gravity="fill_vertical|right" />
|
7
res/drawable/shadow_feeds.xml
Normal file
7
res/drawable/shadow_feeds.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
|
|
||||||
|
<item android:drawable="@color/feeds_light"/>
|
||||||
|
<item android:drawable="@drawable/shadow"/>
|
||||||
|
|
||||||
|
</layer-list>
|
7
res/drawable/shadow_headlines.xml
Normal file
7
res/drawable/shadow_headlines.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
|
|
||||||
|
<item android:drawable="@color/headlines_light"/>
|
||||||
|
<item android:drawable="@drawable/shadow"/>
|
||||||
|
|
||||||
|
</layer-list>
|
@ -12,13 +12,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="match_parent" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorNormal"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linearLayout1"
|
android:id="@+id/linearLayout1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -12,13 +12,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="match_parent" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorSelected"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linearLayout1"
|
android:id="@+id/linearLayout1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -12,13 +12,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="match_parent" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorUnread"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linearLayout1"
|
android:id="@+id/linearLayout1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -34,7 +27,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="There are many variations of passages of Lorem Ipsum available"
|
android:text="There are many variations of passages of Lorem Ipsum available"
|
||||||
android:textColor="?headlineTextColor"
|
android:textColor="?headlineUnreadTextColor"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -3,6 +3,44 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent" >
|
android:layout_height="fill_parent" >
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/fragment_container"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/feeds_fragment"
|
||||||
|
android:layout_width="300dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:background="?feedlistBackground" >
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/vertical_fragment_container"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/headlines_fragment"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="0.5"
|
||||||
|
android:background="?headlinesBackgroundSolid" >
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/article_fragment"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="?articleHeader"
|
||||||
|
android:layout_weight="0.5" >
|
||||||
|
</FrameLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/loading_container"
|
android:id="@+id/loading_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -18,40 +56,4 @@
|
|||||||
android:text="@string/loading_message"
|
android:text="@string/loading_message"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:id="@+id/fragment_container"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent" >
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/feeds_fragment"
|
|
||||||
android:layout_width="300dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="0" >
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/vertical_fragment_container"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/headlines_fragment"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_weight="0.5" >
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/article_fragment"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_weight="0.5" >
|
|
||||||
</FrameLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -14,14 +14,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorNormal"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -13,13 +13,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorSelected"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -13,13 +13,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorUnread"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -43,7 +36,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="{Title...}"
|
android:text="{Title...}"
|
||||||
android:textColor="?headlineTextColor"
|
android:textColor="?headlineUnreadTextColor"
|
||||||
android:textSize="16sp" >
|
android:textSize="16sp" >
|
||||||
</TextView>
|
</TextView>
|
||||||
|
|
||||||
|
@ -4,6 +4,37 @@
|
|||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/fragment_container"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/feeds_fragment"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.3"
|
||||||
|
android:background="?feedlistBackground" >
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/headlines_fragment"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.4"
|
||||||
|
android:background="?headlinesBackground" >
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/article_fragment"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.6"
|
||||||
|
android:background="?articleHeader" >
|
||||||
|
</FrameLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/loading_container"
|
android:id="@+id/loading_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -20,32 +51,4 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:id="@+id/fragment_container"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent" >
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/feeds_fragment"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="0.3" >
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/headlines_fragment"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="0.4" >
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/article_fragment"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="0.6" >
|
|
||||||
</FrameLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -3,17 +3,7 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/splitter_vertical"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="0"
|
|
||||||
android:background="?articleDivider"
|
|
||||||
android:clickable="true"
|
|
||||||
android:paddingLeft="4dip" >
|
|
||||||
</ImageView>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
|
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
|
||||||
@ -21,26 +11,16 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical"
|
||||||
|
android:padding="5sp" >
|
||||||
<ImageView
|
|
||||||
android:id="@+id/splitter_horizontal"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="0"
|
|
||||||
android:background="?articleDivider"
|
|
||||||
android:clickable="true"
|
|
||||||
android:paddingTop="4dip" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/article_header"
|
android:id="@+id/article_header"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:background="?articleHeader"
|
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingLeft="5dp"
|
android:paddingBottom="5sp">
|
||||||
android:paddingRight="5dp" >
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
@ -48,7 +28,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="There are many variations of passages of Lorem Ipsum available"
|
android:text="There are many variations of passages of Lorem Ipsum available"
|
||||||
android:textSize="15sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -89,7 +69,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:padding="3dip" >
|
android:padding="5sp" >
|
||||||
</WebView>
|
</WebView>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
|
||||||
android:layout_height="fill_parent" android:layout_width="match_parent" android:id="@+id/feeds_fragment">
|
android:layout_height="fill_parent" android:layout_width="match_parent" android:id="@+id/feeds_fragment">
|
||||||
<LinearLayout android:id="@+id/loading_container" android:gravity="center" android:layout_height="match_parent" android:layout_width="match_parent">
|
<LinearLayout android:id="@+id/loading_container" android:gravity="center" android:layout_height="match_parent" android:layout_width="match_parent">
|
||||||
<TextView android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/loading_message" android:layout_height="wrap_content" ></TextView>
|
<TextView android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/loading_message" android:layout_height="wrap_content" ></TextView>
|
||||||
@ -8,7 +9,7 @@
|
|||||||
<ListView android:id="@+id/feeds" android:layout_height="match_parent" android:layout_width="match_parent"></ListView>
|
<ListView android:id="@+id/feeds" android:layout_height="match_parent" android:layout_width="match_parent"></ListView>
|
||||||
|
|
||||||
<TextView android:id="@+id/no_feeds"
|
<TextView android:id="@+id/no_feeds"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
android:layout_gravity="center" android:color="#909090"
|
android:layout_gravity="center" android:color="#909090"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_feeds"></TextView>
|
android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_feeds"></TextView>
|
||||||
|
|
||||||
|
@ -14,14 +14,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorNormal"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -13,13 +13,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorSelected"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -13,13 +13,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/headlines_separator"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlineSeparatorUnread"
|
|
||||||
android:paddingRight="4dip" />
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected"
|
android:id="@+id/selected"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -43,7 +36,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="{Title...}"
|
android:text="{Title...}"
|
||||||
android:textColor="?headlineTextColor"
|
android:textColor="?headlineUnreadTextColor"
|
||||||
android:textSize="16sp" >
|
android:textSize="16sp" >
|
||||||
</TextView>
|
</TextView>
|
||||||
|
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
<resources>
|
|
||||||
|
|
||||||
<style name="LightTheme" parent="android:Theme.Holo.Light">
|
|
||||||
<item name="feedlistDivider">@android:drawable/divider_horizontal_bright</item>
|
|
||||||
<item name="feedlistBackground">#fafafa</item>
|
|
||||||
<item name="unreadCounterColor">#0000ff</item>
|
|
||||||
<item name="headlinesBackground">#ffffff</item>
|
|
||||||
<item name="articleDivider">#96c5ff</item>
|
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
|
||||||
<item name="headlineSelectedBackground">#fff7d5</item>
|
|
||||||
<item name="headlineUnreadBackground">#ffffff</item>
|
|
||||||
<item name="headlineNormalBackground">@android:color/transparent</item>
|
|
||||||
<item name="feedsSelectedBackground">#96C5FF</item>
|
|
||||||
<item name="headlineSeparatorUnread">#96C5FF</item>
|
|
||||||
<item name="headlineSeparatorNormal">#909090</item>
|
|
||||||
<item name="headlineSeparatorSelected">#DBC981</item>
|
|
||||||
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
|
||||||
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
|
|
||||||
<item name="headlineTextColor">@android:color/primary_text_light</item>
|
|
||||||
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
|
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
|
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
|
|
||||||
<item name="linkColor">#5858F8</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="DarkTheme" parent="android:Theme.Holo">
|
|
||||||
<item name="feedlistDivider">@android:drawable/divider_horizontal_dark</item>
|
|
||||||
<item name="feedlistBackground">#101010</item>
|
|
||||||
<item name="unreadCounterColor">#303030</item>
|
|
||||||
<item name="headlinesBackground">#000000</item>
|
|
||||||
<item name="articleDivider">#303060</item>
|
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
|
||||||
<item name="headlineSelectedBackground">#303060</item>
|
|
||||||
<item name="headlineUnreadBackground">#303030</item>
|
|
||||||
<item name="headlineNormalBackground">@android:color/transparent</item>
|
|
||||||
<item name="feedsSelectedBackground">#303060</item>
|
|
||||||
<item name="headlineSeparatorUnread">#303060</item>
|
|
||||||
<item name="headlineSeparatorNormal">#303030</item>
|
|
||||||
<item name="headlineSeparatorSelected">#47478E</item>
|
|
||||||
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
|
|
||||||
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
|
|
||||||
<item name="headlineTextColor">@android:color/primary_text_dark</item>
|
|
||||||
<item name="headlineSelectedTextColor">@android:color/primary_text_dark</item>
|
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
|
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_dark</item>
|
|
||||||
<item name="linkColor">#5858F8</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
|
@ -1,21 +1,23 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<style name="LightTheme" parent="android:Theme.Holo.Light">
|
<style name="LightTheme" parent="android:Theme.Holo.Light">
|
||||||
<item name="feedlistDivider">@android:drawable/divider_horizontal_bright</item>
|
<item name="feedlistDivider">@android:drawable/divider_horizontal_bright</item>
|
||||||
<item name="feedlistBackground">#fafafa</item>
|
<item name="feedlistBackground"><!-- #e0e0e0 -->@drawable/shadow_feeds</item>
|
||||||
<item name="unreadCounterColor">#0000ff</item>
|
<item name="unreadCounterColor">#0000ff</item>
|
||||||
<item name="headlinesBackground">#ffffff</item>
|
<item name="headlinesBackground"><!-- #f0f0f0 -->@drawable/shadow_headlines</item>
|
||||||
|
<item name="headlinesBackgroundSolid">#f0f0f0</item>
|
||||||
<item name="articleDivider">#96c5ff</item>
|
<item name="articleDivider">#96c5ff</item>
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
<item name="articleHeader">#ffffff</item>
|
||||||
<item name="headlineSelectedBackground">#fff7d5</item>
|
<item name="headlineSelectedBackground">#ffffff</item>
|
||||||
<item name="headlineUnreadBackground">#ffffff</item>
|
<item name="headlineUnreadBackground">@android:color/transparent</item>
|
||||||
<item name="headlineNormalBackground">@android:color/transparent</item>
|
<item name="headlineNormalBackground">@android:color/transparent</item>
|
||||||
<item name="feedsSelectedBackground">#96C5FF</item>
|
<item name="feedsSelectedBackground">#f0f0f0</item>
|
||||||
<item name="headlineSeparatorUnread">#96C5FF</item>
|
<item name="headlineSeparatorUnread">#96C5FF</item>
|
||||||
<item name="headlineSeparatorNormal">#909090</item>
|
<item name="headlineSeparatorNormal">#909090</item>
|
||||||
<item name="headlineSeparatorSelected">#DBC981</item>
|
<item name="headlineSeparatorSelected">#DBC981</item>
|
||||||
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
|
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineTextColor">@android:color/primary_text_light</item>
|
<item name="headlineTextColor">@android:color/secondary_text_light</item>
|
||||||
|
<item name="headlineUnreadTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
|
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
|
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
|
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
|
||||||
@ -24,13 +26,14 @@
|
|||||||
|
|
||||||
<style name="DarkTheme" parent="android:Theme.Holo">
|
<style name="DarkTheme" parent="android:Theme.Holo">
|
||||||
<item name="feedlistDivider">@android:drawable/divider_horizontal_dark</item>
|
<item name="feedlistDivider">@android:drawable/divider_horizontal_dark</item>
|
||||||
<item name="feedlistBackground">#101010</item>
|
<item name="feedlistBackground">@android:color/transparent</item>
|
||||||
<item name="unreadCounterColor">#303030</item>
|
<item name="unreadCounterColor">#303030</item>
|
||||||
<item name="headlinesBackground">#000000</item>
|
<item name="headlinesBackground">#101010</item>
|
||||||
|
<item name="headlinesBackgroundSolid">#101010</item>
|
||||||
<item name="articleDivider">#33b5e5</item>
|
<item name="articleDivider">#33b5e5</item>
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
<item name="articleHeader">@android:color/transparent</item>
|
||||||
<item name="headlineSelectedBackground">#33b5e5</item>
|
<item name="headlineSelectedBackground">#33b5e5</item>
|
||||||
<item name="headlineUnreadBackground">#303030</item>
|
<item name="headlineUnreadBackground">@android:color/transparent</item>
|
||||||
<item name="headlineNormalBackground">@android:color/transparent</item>
|
<item name="headlineNormalBackground">@android:color/transparent</item>
|
||||||
<item name="feedsSelectedBackground">#33b5e5</item>
|
<item name="feedsSelectedBackground">#33b5e5</item>
|
||||||
<item name="headlineSeparatorUnread">#33b5e5</item>
|
<item name="headlineSeparatorUnread">#33b5e5</item>
|
||||||
@ -38,7 +41,8 @@
|
|||||||
<item name="headlineSeparatorSelected">#33b5e5</item>
|
<item name="headlineSeparatorSelected">#33b5e5</item>
|
||||||
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
|
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
|
||||||
<item name="feedlistSelectedTextColor">@android:color/black</item>
|
<item name="feedlistSelectedTextColor">@android:color/black</item>
|
||||||
<item name="headlineTextColor">@android:color/primary_text_dark</item>
|
<item name="headlineTextColor">@android:color/secondary_text_dark</item>
|
||||||
|
<item name="headlineUnreadTextColor">@android:color/primary_text_dark</item>
|
||||||
<item name="headlineSelectedTextColor">@android:color/black</item>
|
<item name="headlineSelectedTextColor">@android:color/black</item>
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
|
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>
|
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<attr name="feedlistBackground" format="reference|color" />
|
<attr name="feedlistBackground" format="reference|color" />
|
||||||
<attr name="unreadCounterColor" format="reference|color" />
|
<attr name="unreadCounterColor" format="reference|color" />
|
||||||
<attr name="headlinesBackground" format="reference|color" />
|
<attr name="headlinesBackground" format="reference|color" />
|
||||||
|
<attr name="headlinesBackgroundSolid" format="reference|color" />
|
||||||
<attr name="articleHeader" format="reference|color" />
|
<attr name="articleHeader" format="reference|color" />
|
||||||
<attr name="articleDivider" format="reference|color" />
|
<attr name="articleDivider" format="reference|color" />
|
||||||
<attr name="headlineSelectedBackground" format="reference|color" />
|
<attr name="headlineSelectedBackground" format="reference|color" />
|
||||||
@ -16,6 +17,7 @@
|
|||||||
<attr name="feedlistTextColor" format="reference|color" />
|
<attr name="feedlistTextColor" format="reference|color" />
|
||||||
<attr name="feedlistSelectedTextColor" format="reference|color" />
|
<attr name="feedlistSelectedTextColor" format="reference|color" />
|
||||||
<attr name="headlineTextColor" format="reference|color" />
|
<attr name="headlineTextColor" format="reference|color" />
|
||||||
|
<attr name="headlineUnreadTextColor" format="reference|color" />
|
||||||
<attr name="headlineSelectedTextColor" format="reference|color" />
|
<attr name="headlineSelectedTextColor" format="reference|color" />
|
||||||
<attr name="headlineExcerptTextColor" format="reference|color" />
|
<attr name="headlineExcerptTextColor" format="reference|color" />
|
||||||
<attr name="headlineSelectedExcerptTextColor" format="reference|color" />
|
<attr name="headlineSelectedExcerptTextColor" format="reference|color" />
|
||||||
|
7
res/values/resources.xml
Normal file
7
res/values/resources.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<color name="feeds_light">#e0e0e0</color>
|
||||||
|
<color name="headlines_light">#f0f0f0</color>
|
||||||
|
|
||||||
|
</resources>
|
@ -5,6 +5,7 @@
|
|||||||
<item name="feedlistBackground">#fafafa</item>
|
<item name="feedlistBackground">#fafafa</item>
|
||||||
<item name="unreadCounterColor">#0000ff</item>
|
<item name="unreadCounterColor">#0000ff</item>
|
||||||
<item name="headlinesBackground">#ffffff</item>
|
<item name="headlinesBackground">#ffffff</item>
|
||||||
|
<item name="headlinesBackgroundSolid">#ffffff</item>
|
||||||
<item name="articleDivider">#96c5ff</item>
|
<item name="articleDivider">#96c5ff</item>
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
<item name="articleHeader">@android:color/transparent</item>
|
||||||
<item name="headlineSelectedBackground">#fff7d5</item>
|
<item name="headlineSelectedBackground">#fff7d5</item>
|
||||||
@ -17,6 +18,7 @@
|
|||||||
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
<item name="feedlistTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
|
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineTextColor">@android:color/primary_text_light</item>
|
<item name="headlineTextColor">@android:color/primary_text_light</item>
|
||||||
|
<item name="headlineUnreadTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
|
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
|
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
|
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
|
||||||
@ -28,6 +30,7 @@
|
|||||||
<item name="feedlistBackground">#101010</item>
|
<item name="feedlistBackground">#101010</item>
|
||||||
<item name="unreadCounterColor">#303030</item>
|
<item name="unreadCounterColor">#303030</item>
|
||||||
<item name="headlinesBackground">#000000</item>
|
<item name="headlinesBackground">#000000</item>
|
||||||
|
<item name="headlinesBackgroundSolid">#000000</item>
|
||||||
<item name="articleDivider">#F5B800</item>
|
<item name="articleDivider">#F5B800</item>
|
||||||
<item name="articleHeader">@android:color/transparent</item>
|
<item name="articleHeader">@android:color/transparent</item>
|
||||||
<item name="headlineSelectedBackground">#F5B800</item>
|
<item name="headlineSelectedBackground">#F5B800</item>
|
||||||
@ -40,6 +43,7 @@
|
|||||||
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
|
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
|
||||||
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
|
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
|
||||||
<item name="headlineTextColor">@android:color/primary_text_dark</item>
|
<item name="headlineTextColor">@android:color/primary_text_dark</item>
|
||||||
|
<item name="headlineUnreadTextColor">@android:color/primary_text_dark</item>
|
||||||
<item name="headlineSelectedTextColor">@android:color/black</item>
|
<item name="headlineSelectedTextColor">@android:color/black</item>
|
||||||
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
|
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
|
||||||
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>
|
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>
|
||||||
|
@ -88,7 +88,7 @@ public class ArticleFragment extends Fragment {
|
|||||||
|
|
||||||
Activity activity = (Activity)getActivity();
|
Activity activity = (Activity)getActivity();
|
||||||
|
|
||||||
if (activity != null) {
|
/* if (activity != null) {
|
||||||
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
|
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
|
||||||
|
|
||||||
if (!m_onlineServices.isSmallScreen()) {
|
if (!m_onlineServices.isSmallScreen()) {
|
||||||
@ -103,7 +103,7 @@ public class ArticleFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
|
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
|
||||||
}
|
} */
|
||||||
|
|
||||||
if (m_article != null) {
|
if (m_article != null) {
|
||||||
|
|
||||||
@ -187,6 +187,7 @@ public class ArticleFragment extends Fragment {
|
|||||||
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
||||||
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
||||||
"<style type=\"text/css\">" +
|
"<style type=\"text/css\">" +
|
||||||
|
"body { padding : 0px; margin : 0px; }" +
|
||||||
cssOverride +
|
cssOverride +
|
||||||
"div.attachments { font-size : 70%; margin-top : 1em; }" +
|
"div.attachments { font-size : 70%; margin-top : 1em; }" +
|
||||||
"img { max-width : 98%; height : auto; }" +
|
"img { max-width : 98%; height : auto; }" +
|
||||||
|
@ -464,11 +464,11 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
|
/* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
|
||||||
|
|
||||||
if (separator != null && m_onlineServices.isSmallScreen()) {
|
if (separator != null && m_onlineServices.isSmallScreen()) {
|
||||||
separator.setVisibility(View.GONE);
|
separator.setVisibility(View.GONE);
|
||||||
}
|
} */
|
||||||
|
|
||||||
TextView content = (TextView)v.findViewById(R.id.content);
|
TextView content = (TextView)v.findViewById(R.id.content);
|
||||||
|
|
||||||
|
@ -420,6 +420,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
|
|
||||||
private void setUnreadOnly(boolean unread) {
|
private void setUnreadOnly(boolean unread) {
|
||||||
m_unreadOnly = unread;
|
m_unreadOnly = unread;
|
||||||
|
m_lastRefresh = 0;
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -975,6 +976,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
startActivityForResult(intent, 0);
|
startActivityForResult(intent, 0);
|
||||||
return true;
|
return true;
|
||||||
case R.id.update_feeds:
|
case R.id.update_feeds:
|
||||||
|
m_lastRefresh = 0;
|
||||||
refresh();
|
refresh();
|
||||||
return true;
|
return true;
|
||||||
case R.id.logout:
|
case R.id.logout:
|
||||||
@ -1390,7 +1392,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
getActionBar().setTitle(R.string.app_name);
|
getActionBar().setTitle(R.string.app_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null);
|
if (m_smallScreenMode) {
|
||||||
|
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null);
|
||||||
|
} else {
|
||||||
|
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null || m_activeFeed != null);
|
||||||
|
}
|
||||||
|
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
ShareActionProvider shareProvider = (ShareActionProvider) m_menu.findItem(R.id.share_article).getActionProvider();
|
ShareActionProvider shareProvider = (ShareActionProvider) m_menu.findItem(R.id.share_article).getActionProvider();
|
||||||
|
@ -75,7 +75,7 @@ public class OfflineArticleFragment extends Fragment {
|
|||||||
// TODO change to interface?
|
// TODO change to interface?
|
||||||
Activity activity = getActivity();
|
Activity activity = getActivity();
|
||||||
|
|
||||||
if (activity != null) {
|
/* if (activity != null) {
|
||||||
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
|
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
|
||||||
|
|
||||||
if (!m_offlineServices.isSmallScreen()) {
|
if (!m_offlineServices.isSmallScreen()) {
|
||||||
@ -90,7 +90,7 @@ public class OfflineArticleFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
|
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
|
||||||
}
|
} */
|
||||||
|
|
||||||
m_cursor = m_offlineServices.getReadableDb().query("articles", null, BaseColumns._ID + "=?",
|
m_cursor = m_offlineServices.getReadableDb().query("articles", null, BaseColumns._ID + "=?",
|
||||||
new String[] { String.valueOf(m_articleId) }, null, null, null);
|
new String[] { String.valueOf(m_articleId) }, null, null, null);
|
||||||
@ -193,6 +193,7 @@ public class OfflineArticleFragment extends Fragment {
|
|||||||
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
||||||
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
||||||
"<style type=\"text/css\">" +
|
"<style type=\"text/css\">" +
|
||||||
|
"body { padding : 0px; margin : 0px; }" +
|
||||||
cssOverride +
|
cssOverride +
|
||||||
"img { max-width : 98%; height : auto; }" +
|
"img { max-width : 98%; height : auto; }" +
|
||||||
"</style>" +
|
"</style>" +
|
||||||
|
@ -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()) {
|
if (separator != null && m_offlineServices.isSmallScreen()) {
|
||||||
separator.setVisibility(View.GONE);
|
separator.setVisibility(View.GONE);
|
||||||
}
|
} */
|
||||||
|
|
||||||
TextView content = (TextView)v.findViewById(R.id.content);
|
TextView content = (TextView)v.findViewById(R.id.content);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user