summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-04 14:27:41 +0300
committerAndrew Dolgov <[email protected]>2015-06-04 14:27:41 +0300
commit42358f6f6d738b97a9e724688e3b497b693a57ba (patch)
tree1929563ded07f643d566363af8830473d4120725 /org.fox.ttrss/src/main/res/layout
parent9f776be2ee1c5e7c22d99cc4317c403f64cd91c2 (diff)
move settings and unread only switch to the drawer
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/feeds_row.xml2
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/feeds_row_selected.xml2
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/feeds_row_toggle.xml46
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_divider.xml15
4 files changed, 63 insertions, 2 deletions
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 138cede3..b8fe5724 100755
--- a/org.fox.ttrss/src/main/res/layout/feeds_row.xml
+++ b/org.fox.ttrss/src/main/res/layout/feeds_row.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/feeds_row"
android:layout_width="match_parent"
- android:layout_height="?android:attr/listPreferredItemHeight"
+ android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:paddingLeft="16dp"
android:paddingRight="16dp"
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 53e62215..601712fd 100755
--- a/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml
+++ b/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/feeds_row"
android:layout_width="match_parent"
- android:layout_height="?android:attr/listPreferredItemHeight"
+ android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:background="?feedsSelectedBackground"
android:paddingLeft="16dp"
diff --git a/org.fox.ttrss/src/main/res/layout/feeds_row_toggle.xml b/org.fox.ttrss/src/main/res/layout/feeds_row_toggle.xml
new file mode 100755
index 00000000..e871a4a2
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/layout/feeds_row_toggle.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/feeds_row"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:descendantFocusability="blocksDescendants"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:baselineAligned="true"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_gravity="center_vertical"
+ android:layout_width="21dp"
+ android:layout_height="21dp"
+ android:layout_weight="0"
+ android:scaleType="fitXY"
+ android:src="?ic_rss_box" />
+
+ <TextView
+ android:id="@+id/title"
+ android:fontFamily="sans-serif-medium"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:paddingLeft="35dp"
+ android:singleLine="true"
+ android:text="Feed"
+ android:paddingBottom="2dp"
+ android:textColor="?feedlistTextColor"
+ android:textSize="14sp" />
+
+ <android.support.v7.widget.SwitchCompat
+ android:id="@+id/row_switch"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:layout_marginLeft="16dp" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_divider.xml b/org.fox.ttrss/src/main/res/layout/headlines_divider.xml
new file mode 100755
index 00000000..40294376
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/layout/headlines_divider.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/headlines_footer"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <View
+ android:layout_gravity="top|center_horizontal"
+ android:layout_marginTop="10dp"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?headlineFooterColor"/>
+
+</FrameLayout> \ No newline at end of file