make the event list widget more compact, reduce paddings

This commit is contained in:
tibbi 2018-05-27 11:31:14 +02:00
parent ec32d6085f
commit 785a2e0ae5
3 changed files with 17 additions and 17 deletions

View File

@ -10,7 +10,7 @@
android:id="@+id/event_item_start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/activity_margin"
android:layout_marginLeft="@dimen/medium_margin"
android:textSize="@dimen/day_text_size"
tools:text="13:00"/>
@ -19,7 +19,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/event_item_start"
android:layout_marginLeft="@dimen/activity_margin"
android:layout_marginLeft="@dimen/medium_margin"
android:text="15:00"
android:textSize="@dimen/day_text_size"/>
@ -27,12 +27,12 @@
android:id="@+id/event_section_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/big_margin"
android:layout_marginLeft="@dimen/normal_margin"
android:layout_toLeftOf="@+id/event_item_color"
android:layout_toRightOf="@+id/event_item_start"
android:ellipsize="end"
android:maxLines="1"
android:paddingRight="@dimen/activity_margin"
android:paddingRight="@dimen/small_margin"
android:textSize="@dimen/day_text_size"
tools:text="Event title"/>
@ -41,12 +41,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/event_section_title"
android:layout_marginLeft="@dimen/big_margin"
android:layout_marginLeft="@dimen/normal_margin"
android:layout_toLeftOf="@+id/event_item_color"
android:layout_toRightOf="@+id/event_item_end"
android:ellipsize="end"
android:maxLines="1"
android:paddingRight="@dimen/activity_margin"
android:paddingRight="@dimen/small_margin"
android:textSize="@dimen/day_text_size"
tools:text="Event description"/>
@ -58,7 +58,7 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/event_section_title"
android:paddingRight="@dimen/activity_margin"
android:paddingRight="@dimen/medium_margin"
android:src="@drawable/monthly_event_dot"/>
</RelativeLayout>

View File

@ -6,6 +6,6 @@
android:layout_height="wrap_content"
android:drawablePadding="1dp"
android:drawableTop="@drawable/divider_width"
android:paddingTop="@dimen/medium_margin"
android:paddingTop="@dimen/small_margin"
android:textSize="@dimen/normal_text_size"
android:textStyle="bold"/>

View File

@ -15,8 +15,8 @@
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin"
android:textSize="@dimen/normal_text_size"/>
<ImageView
@ -26,10 +26,10 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:paddingBottom="@dimen/medium_margin"
android:paddingLeft="@dimen/normal_margin"
android:paddingRight="@dimen/normal_margin"
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/small_margin"
android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin"
android:paddingTop="@dimen/medium_margin"
android:scaleType="fitCenter"
android:src="@drawable/ic_plus"/>
@ -40,9 +40,9 @@
android:layout_below="@+id/widget_event_new_event"
android:clipToPadding="false"
android:divider="@null"
android:dividerHeight="@dimen/medium_margin"
android:paddingBottom="@dimen/medium_margin"
android:paddingLeft="@dimen/activity_margin"/>
android:dividerHeight="@dimen/small_margin"
android:paddingBottom="@dimen/small_margin"
android:paddingLeft="@dimen/medium_margin"/>
<TextView
android:id="@+id/widget_event_list_empty"