summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-11-01 12:02:01 +0400
committerAndrew Dolgov <[email protected]>2014-11-01 12:02:01 +0400
commit2a06e4de302240b31059cbb880b708d5d7f3dab6 (patch)
treececaad644007269e0568f80f24a02eda0a3c7b9b
parent081b98e9c0abbccaf2d99028e68e2a4a139f17cf (diff)
remove pill counters
-rw-r--r--org.fox.ttrss/src/main/AndroidManifest.xml4
-rw-r--r--org.fox.ttrss/src/main/res/drawable/counter_background.xml12
-rw-r--r--org.fox.ttrss/src/main/res/drawable/counter_background_dark.xml12
-rw-r--r--org.fox.ttrss/src/main/res/drawable/counter_background_selected_light.xml12
-rw-r--r--org.fox.ttrss/src/main/res/drawable/counter_background_sepia.xml12
-rw-r--r--org.fox.ttrss/src/main/res/layout/cats_fragment.xml2
-rw-r--r--org.fox.ttrss/src/main/res/layout/feeds_fragment.xml2
-rw-r--r--org.fox.ttrss/src/main/res/layout/feeds_row.xml39
-rw-r--r--org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml43
-rw-r--r--org.fox.ttrss/src/main/res/layout/headlines_footer.xml2
-rw-r--r--org.fox.ttrss/src/main/res/values/attrs.xml2
-rw-r--r--org.fox.ttrss/src/main/res/values/style.xml17
12 files changed, 48 insertions, 111 deletions
diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml
index 66259bd9..ddca44c4 100644
--- a/org.fox.ttrss/src/main/AndroidManifest.xml
+++ b/org.fox.ttrss/src/main/AndroidManifest.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
- android:versionCode="255"
- android:versionName="1.52" >
+ android:versionCode="256"
+ android:versionName="1.53" >
<uses-sdk
android:minSdkVersion="9"
diff --git a/org.fox.ttrss/src/main/res/drawable/counter_background.xml b/org.fox.ttrss/src/main/res/drawable/counter_background.xml
deleted file mode 100644
index 1c2c4094..00000000
--- a/org.fox.ttrss/src/main/res/drawable/counter_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <solid android:color="@color/unread_counter_background" />
-
- <corners
- android:bottomLeftRadius="4dp"
- android:bottomRightRadius="4dp"
- android:topLeftRadius="4dp"
- android:topRightRadius="4dp" />
-
-</shape> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/drawable/counter_background_dark.xml b/org.fox.ttrss/src/main/res/drawable/counter_background_dark.xml
deleted file mode 100644
index 3cc971c6..00000000
--- a/org.fox.ttrss/src/main/res/drawable/counter_background_dark.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <solid android:color="@color/unread_counter_background_dark" />
-
- <corners
- android:bottomLeftRadius="4dp"
- android:bottomRightRadius="4dp"
- android:topLeftRadius="4dp"
- android:topRightRadius="4dp" />
-
-</shape> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/drawable/counter_background_selected_light.xml b/org.fox.ttrss/src/main/res/drawable/counter_background_selected_light.xml
deleted file mode 100644
index 7485ea00..00000000
--- a/org.fox.ttrss/src/main/res/drawable/counter_background_selected_light.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <solid android:color="@color/unread_counter_background_selected_light" />
-
- <corners
- android:bottomLeftRadius="4dp"
- android:bottomRightRadius="4dp"
- android:topLeftRadius="4dp"
- android:topRightRadius="4dp" />
-
-</shape> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/drawable/counter_background_sepia.xml b/org.fox.ttrss/src/main/res/drawable/counter_background_sepia.xml
deleted file mode 100644
index daebd494..00000000
--- a/org.fox.ttrss/src/main/res/drawable/counter_background_sepia.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <solid android:color="@color/unread_counter_background_sepia" />
-
- <corners
- android:bottomLeftRadius="4dp"
- android:bottomRightRadius="4dp"
- android:topLeftRadius="4dp"
- android:topRightRadius="4dp" />
-
-</shape> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/cats_fragment.xml b/org.fox.ttrss/src/main/res/layout/cats_fragment.xml
index 4a950933..1f0fc38b 100644
--- a/org.fox.ttrss/src/main/res/layout/cats_fragment.xml
+++ b/org.fox.ttrss/src/main/res/layout/cats_fragment.xml
@@ -11,6 +11,8 @@
<ListView
android:id="@+id/feeds"
+ android:dividerHeight="0dp"
+ android:divider="@null"
android:layoutAnimation="@anim/layout_feeds"
android:layout_width="match_parent"
android:layout_height="match_parent" >
diff --git a/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml b/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml
index aa02ffff..4c5ad73a 100644
--- a/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml
+++ b/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml
@@ -13,6 +13,8 @@
<ListView
android:id="@+id/feeds"
+ android:dividerHeight="0dp"
+ android:divider="@null"
android:layoutAnimation="@anim/layout_feeds"
android:layout_width="match_parent"
android:layout_height="match_parent" >
diff --git a/org.fox.ttrss/src/main/res/layout/feeds_row.xml b/org.fox.ttrss/src/main/res/layout/feeds_row.xml
index f2fc286c..38603144 100644
--- a/org.fox.ttrss/src/main/res/layout/feeds_row.xml
+++ b/org.fox.ttrss/src/main/res/layout/feeds_row.xml
@@ -4,17 +4,19 @@
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:descendantFocusability="blocksDescendants"
+ android:paddingLeft="12dp"
+ android:paddingRight="12dp"
+ android:paddingTop="6dp"
+ android:paddingBottom="6dp"
+ android:baselineAligned="true"
android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingBottom="10dip"
- android:paddingLeft="8dip"
- android:paddingRight="8dip"
- android:paddingTop="10dip" >
+ android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
- android:layout_width="20dp"
- android:layout_height="20dp"
+ android:layout_gravity="center_vertical"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
android:layout_weight="0"
android:scaleType="fitXY"
android:src="@drawable/ic_unpublished" />
@@ -22,34 +24,27 @@
<TextView
android:id="@+id/title"
android:fontFamily="sans-serif-light"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
+ android:gravity="center_vertical"
android:layout_weight="1"
android:ellipsize="end"
- android:paddingLeft="8dip"
+ android:paddingLeft="12dip"
android:singleLine="true"
- android:text="{FEED}"
+ android:text="Feed"
+ android:paddingBottom="2dp"
android:textColor="?feedlistTextColor"
android:textSize="18sp" />
<TextView
android:id="@+id/unread_counter"
- android:layout_width="45dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginRight="6dp"
android:layout_weight="0"
- android:background="?attr/unreadCounterBackground"
- android:gravity="center"
- android:paddingBottom="4dp"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- android:paddingTop="4dp"
android:singleLine="true"
android:text="3200"
android:textColor="?unreadCounterColor"
- android:textSize="12sp"
+ android:textSize="14sp"
android:textStyle="bold" />
<ImageButton
@@ -59,7 +54,7 @@
android:layout_weight="0"
android:background="@null"
android:paddingLeft="8dp"
- android:paddingRight="4dp"
+ android:visibility="gone"
android:src="@drawable/ic_action_overflow" />
</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml b/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml
index 6cf43666..734fe637 100644
--- a/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml
+++ b/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml
@@ -3,54 +3,49 @@
android:id="@+id/feeds_row"
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
- android:background="?feedsSelectedBackground"
android:descendantFocusability="blocksDescendants"
+ android:background="?feedsSelectedBackground"
+ android:paddingLeft="12dp"
+ android:paddingRight="12dp"
+ android:paddingTop="6dp"
+ android:paddingBottom="6dp"
+ android:baselineAligned="true"
android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingBottom="10dip"
- android:paddingLeft="8dip"
- android:paddingRight="8dip"
- android:paddingTop="10dip" >
+ android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
- android:layout_width="20dp"
- android:layout_height="20dp"
+ android:layout_gravity="center_vertical"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
android:layout_weight="0"
android:scaleType="fitXY"
android:src="@drawable/ic_unpublished" />
<TextView
- android:fontFamily="sans-serif-light"
android:id="@+id/title"
- android:layout_width="0dp"
+ android:fontFamily="sans-serif-light"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
+ android:gravity="center_vertical"
android:layout_weight="1"
android:ellipsize="end"
- android:paddingLeft="8dip"
+ android:paddingLeft="12dip"
android:singleLine="true"
- android:text="{FEED}"
+ android:text="Feed"
+ android:paddingBottom="2dp"
android:textColor="?feedlistSelectedTextColor"
android:textSize="18sp" />
<TextView
android:id="@+id/unread_counter"
- android:layout_width="45dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginRight="6dp"
android:layout_weight="0"
- android:background="?attr/unreadSelectedCounterBackground"
- android:gravity="center"
- android:paddingBottom="4dp"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- android:paddingTop="4dp"
android:singleLine="true"
android:text="3200"
android:textColor="?unreadCounterColor"
- android:textSize="12sp"
+ android:textSize="14sp"
android:textStyle="bold" />
<ImageButton
@@ -60,7 +55,7 @@
android:layout_weight="0"
android:background="@null"
android:paddingLeft="8dp"
- android:paddingRight="4dp"
+ android:visibility="gone"
android:src="@drawable/ic_action_overflow" />
</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_footer.xml b/org.fox.ttrss/src/main/res/layout/headlines_footer.xml
index 5877aae9..332c9882 100644
--- a/org.fox.ttrss/src/main/res/layout/headlines_footer.xml
+++ b/org.fox.ttrss/src/main/res/layout/headlines_footer.xml
@@ -10,6 +10,6 @@
android:layout_marginTop="10dp"
android:layout_width="128dp"
android:layout_height="1dp"
- android:background="?unreadCounterBackground"/>
+ android:background="?feedsSelectedBackground"/>
</FrameLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/values/attrs.xml b/org.fox.ttrss/src/main/res/values/attrs.xml
index 272c3dbd..31d5e33e 100644
--- a/org.fox.ttrss/src/main/res/values/attrs.xml
+++ b/org.fox.ttrss/src/main/res/values/attrs.xml
@@ -23,8 +23,6 @@
<attr name="headlineTitleHighScoreUnreadTextColor" format="reference|color" />
<attr name="linkColor" format="reference|color" />
<attr name="loadingBackground" format="reference|color" />
- <attr name="unreadCounterBackground" format="reference|color" />
- <attr name="unreadSelectedCounterBackground" format="reference|color" />
<attr name="articleNoteBackground" format="reference|color" />
<attr name="articleNoteTextColor" format="reference|color" />
<attr name="statusBarHintColor" format="reference|color" />
diff --git a/org.fox.ttrss/src/main/res/values/style.xml b/org.fox.ttrss/src/main/res/values/style.xml
index b1ac677c..1fc8b25d 100644
--- a/org.fox.ttrss/src/main/res/values/style.xml
+++ b/org.fox.ttrss/src/main/res/values/style.xml
@@ -5,14 +5,14 @@
<item name="smallScreenBackground">#eeeeee</item>
<item name="ttrssHorizontalDivider">@android:drawable/divider_horizontal_bright</item>
<item name="feedlistBackground"><!-- #e0e0e0 -->@drawable/shadow_feeds</item>
- <item name="unreadCounterColor">#ffffff</item>
+ <item name="unreadCounterColor">#909090</item>
<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">@android:color/white</item>
<item name="headlineNormalBackground">#f5f5f5</item>
- <item name="feedsSelectedBackground">#88b0f0</item>
+ <item name="feedsSelectedBackground">#526a8e</item>
<item name="feedlistTextColor">@android:color/primary_text_light</item>
<item name="feedlistSelectedTextColor">#ffffff</item>
<item name="headlineTextColor">@android:color/secondary_text_light</item>
@@ -25,8 +25,6 @@
<item name="headlineTitleHighScoreUnreadTextColor">#008000</item>
<item name="linkColor">#4684ff</item>
<item name="loadingBackground">@android:color/white</item>
- <item name="unreadCounterBackground">@drawable/counter_background</item>
- <item name="unreadSelectedCounterBackground">@drawable/counter_background_selected_light</item>
<item name="articleNoteTextColor">#9a8c59</item>
<item name="articleNoteBackground">#fff7d5</item>
<item name="parentBtnBackground">#dddddd</item>
@@ -46,10 +44,8 @@
<item name="headlinesBackground">@drawable/shadow_headlines_sepia</item>
<item name="headlinesBackgroundSolid">@drawable/paper_sepia</item>
<item name="headlineSelectedBackground">#E5B0A0</item>
- <item name="feedsSelectedBackground">#E5B0A0</item>
+ <item name="feedsSelectedBackground">#7F3F3F</item>
<item name="articleBackground">@drawable/paper_sepia</item>
- <item name="unreadCounterBackground">@drawable/counter_background_sepia</item>
- <item name="unreadSelectedCounterBackground">@drawable/counter_background_sepia</item>
<item name="feedlistTextColor">#35281C</item>
<item name="linkColor">#C46262</item>
@@ -66,7 +62,7 @@
<item name="smallScreenBackground">@android:color/transparent</item>
<item name="ttrssHorizontalDivider">@android:drawable/divider_horizontal_dark</item>
<item name="feedlistBackground">@android:color/transparent</item>
- <item name="unreadCounterColor">#ffffff</item>
+ <item name="unreadCounterColor">#909090</item>
<item name="headlinesBackground">@android:color/black</item>
<item name="headlinesBackgroundSolid">@android:color/black</item>
<item name="articleBackground">@android:color/black</item>
@@ -86,8 +82,6 @@
<item name="headlineTitleHighScoreUnreadTextColor">#00FF00</item>
<item name="linkColor">@color/ics_cyan</item>
<item name="loadingBackground">@android:color/black</item>
- <item name="unreadCounterBackground">@drawable/counter_background_dark</item>
- <item name="unreadSelectedCounterBackground">@drawable/counter_background_dark</item>
<item name="articleNoteTextColor">@android:color/secondary_text_dark</item>
<item name="articleNoteBackground">#303030</item>
<item name="parentBtnBackground">#101010</item>
@@ -106,11 +100,10 @@
<item name="articleBackground">@color/feeds_dark_gray</item>
<item name="headlineSelectedBackground">#51698E</item>
<item name="headlineUnreadBackground">#383c42</item>
- <item name="feedsSelectedBackground">#51698E</item>
+ <item name="feedsSelectedBackground">#445877</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_dark</item>
<item name="headlineTextColor">@android:color/secondary_text_dark</item>
- <!-- <item name="actionBarStyle">@style/ActionBarDarkGray</item> -->
<item name="headlineSelectedSecondaryTextColor">#a0a0a0</item>
<item name="colorPrimary">#51698E</item>