diff options
| author | Danny Baumann <dannybaumann@web.de> | 2014-08-27 11:02:48 +0200 |
|---|---|---|
| committer | LorDClockaN <davor@losinj.com> | 2014-09-01 16:01:31 +0200 |
| commit | b1dc852d0527116dcbe0da5fda796674c91b5e84 (patch) | |
| tree | f21f81993fd484d0d5a645ada22b090f3e6047b4 | |
| parent | 3b8e56b03814276852cbd728bb074b6c8b2a6ba4 (diff) | |
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> |
