diff options
author | Andrew Dolgov <[email protected]> | 2014-11-16 13:13:39 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-16 13:13:39 +0400 |
commit | e5ab4e59686632a28debc6039f1c6927fffe9643 (patch) | |
tree | 28b76c2de2c47b048126058397b40cb140f4b3b7 /org.fox.ttrss/src/main/res/layout | |
parent | 51d4bef187139700252ae9c7ff6ef1a5cd48c399 (diff) |
add gmail-like round drawable for compact mode in place of checkbox
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
4 files changed, 72 insertions, 24 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_compact.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_compact.xml index eec8860f..c0240fda 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_compact.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_compact.xml @@ -10,13 +10,25 @@ android:background="?headlineNormalBackground" tools:ignore="HardcodedText" > - <CheckBox - android:id="@+id/selected" + <FrameLayout + android:layout_marginRight="8dp" + android:layout_gravity="center_vertical|left" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:layout_gravity="center" - android:focusable="false" /> + android:layout_height="wrap_content"> + + <ImageView + android:clickable="true" + android:layout_width="48dp" + android:layout_height="48dp" + android:id="@+id/text_image"/> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:src="@drawable/check_sm" + android:id="@+id/text_checked"/> + + </FrameLayout> <LinearLayout android:layout_weight="1" diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_compact.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_compact.xml index 5198023c..25a46b46 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_compact.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_compact.xml @@ -10,13 +10,25 @@ android:background="?headlineSelectedBackground" tools:ignore="HardcodedText" > - <CheckBox - android:id="@+id/selected" + <FrameLayout + android:layout_marginRight="8dp" + android:layout_gravity="center_vertical|left" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:layout_gravity="center" - android:focusable="false" /> + android:layout_height="wrap_content"> + + <ImageView + android:clickable="true" + android:layout_width="48dp" + android:layout_height="48dp" + android:id="@+id/text_image"/> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:src="@drawable/check_sm" + android:id="@+id/text_checked"/> + + </FrameLayout> <LinearLayout android:layout_weight="1" diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread_compact.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread_compact.xml index f5c3d10c..7b2a8983 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread_compact.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread_compact.xml @@ -10,13 +10,25 @@ android:background="?headlineSelectedBackground" tools:ignore="HardcodedText" > - <CheckBox - android:id="@+id/selected" + <FrameLayout + android:layout_marginRight="8dp" + android:layout_gravity="center_vertical|left" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:layout_gravity="center" - android:focusable="false" /> + android:layout_height="wrap_content"> + + <ImageView + android:clickable="true" + android:layout_width="48dp" + android:layout_height="48dp" + android:id="@+id/text_image"/> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:src="@drawable/check_sm" + android:id="@+id/text_checked"/> + + </FrameLayout> <LinearLayout android:layout_weight="1" diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_unread_compact.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_unread_compact.xml index fef86b19..0a29e48e 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_unread_compact.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_unread_compact.xml @@ -10,13 +10,25 @@ android:background="?headlineUnreadBackground" tools:ignore="HardcodedText" > - <CheckBox - android:id="@+id/selected" + <FrameLayout + android:layout_marginRight="8dp" + android:layout_gravity="center_vertical|left" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:layout_gravity="center" - android:focusable="false" /> + android:layout_height="wrap_content"> + + <ImageView + android:clickable="true" + android:layout_width="48dp" + android:layout_height="48dp" + android:id="@+id/text_image"/> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:src="@drawable/check_sm" + android:id="@+id/text_checked"/> + + </FrameLayout> <LinearLayout android:layout_weight="1" |