diff options
author | Danny Baumann <dannybaumann@web.de> | 2014-08-27 11:02:48 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2014-08-27 11:02:48 +0200 |
commit | 3bdabb0e422c61f6696c4d1a7a606a3096bab6de (patch) | |
tree | efaa181c3e08995a5582147efdafa1e7443bbe58 | |
parent | b6ec99649ccd9a4c92a1e9b9d4e38db92e09e040 (diff) | |
download | android_packages_apps_Calendar-3bdabb0e422c61f6696c4d1a7a606a3096bab6de.tar.gz android_packages_apps_Calendar-3bdabb0e422c61f6696c4d1a7a606a3096bab6de.tar.bz2 android_packages_apps_Calendar-3bdabb0e422c61f6696c4d1a7a606a3096bab6de.zip |
Improve delete list item layout.
Add a little padding and RTL support.
Change-Id: Ie3d9fd99c8e1888d59212d29cb78a406dee54632
-rw-r--r-- | res/layout/event_list_item.xml | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/res/layout/event_list_item.xml b/res/layout/event_list_item.xml index 2fc7f5e7..17c22e41 100644 --- a/res/layout/event_list_item.xml +++ b/res/layout/event_list_item.xml @@ -31,45 +31,40 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingTop="2dp" + android:paddingBottom="2dp" android:background="?android:attr/activatedBackgroundIndicator"> <CheckBox android:id="@+id/checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_centerVertical="true" - android:clickable="false" - android:focusable="false" > - </CheckBox> + android:layout_marginStart="4dp" + android:layout_marginEnd="4dp" /> <TextView android:id="@+id/event_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" - android:layout_toRightOf="@id/checkbox" - android:focusable="false" + android:layout_toEndOf="@id/checkbox" android:textAppearance="?android:attr/textAppearanceMedium" - android:textStyle="bold" > - </TextView> + android:textStyle="bold" /> <TextView android:id="@+id/event_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/event_title" - android:layout_toRightOf="@id/checkbox" - android:focusable="false" > - </TextView> + android:layout_toEndOf="@id/checkbox" /> <TextView android:id="@+id/calendar_account" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/event_time" - android:layout_toRightOf="@id/checkbox" - android:focusable="false" > - </TextView> + android:layout_toEndOf="@id/checkbox" /> </RelativeLayout> |