make the event list widget more compact, reduce paddings
This commit is contained in:
parent
ec32d6085f
commit
785a2e0ae5
|
@ -10,7 +10,7 @@
|
||||||
android:id="@+id/event_item_start"
|
android:id="@+id/event_item_start"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="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"
|
android:textSize="@dimen/day_text_size"
|
||||||
tools:text="13:00"/>
|
tools:text="13:00"/>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/event_item_start"
|
android:layout_below="@+id/event_item_start"
|
||||||
android:layout_marginLeft="@dimen/activity_margin"
|
android:layout_marginLeft="@dimen/medium_margin"
|
||||||
android:text="15:00"
|
android:text="15:00"
|
||||||
android:textSize="@dimen/day_text_size"/>
|
android:textSize="@dimen/day_text_size"/>
|
||||||
|
|
||||||
|
@ -27,12 +27,12 @@
|
||||||
android:id="@+id/event_section_title"
|
android:id="@+id/event_section_title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="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_toLeftOf="@+id/event_item_color"
|
||||||
android:layout_toRightOf="@+id/event_item_start"
|
android:layout_toRightOf="@+id/event_item_start"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:paddingRight="@dimen/activity_margin"
|
android:paddingRight="@dimen/small_margin"
|
||||||
android:textSize="@dimen/day_text_size"
|
android:textSize="@dimen/day_text_size"
|
||||||
tools:text="Event title"/>
|
tools:text="Event title"/>
|
||||||
|
|
||||||
|
@ -41,12 +41,12 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/event_section_title"
|
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_toLeftOf="@+id/event_item_color"
|
||||||
android:layout_toRightOf="@+id/event_item_end"
|
android:layout_toRightOf="@+id/event_item_end"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:paddingRight="@dimen/activity_margin"
|
android:paddingRight="@dimen/small_margin"
|
||||||
android:textSize="@dimen/day_text_size"
|
android:textSize="@dimen/day_text_size"
|
||||||
tools:text="Event description"/>
|
tools:text="Event description"/>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignTop="@+id/event_section_title"
|
android:layout_alignTop="@+id/event_section_title"
|
||||||
android:paddingRight="@dimen/activity_margin"
|
android:paddingRight="@dimen/medium_margin"
|
||||||
android:src="@drawable/monthly_event_dot"/>
|
android:src="@drawable/monthly_event_dot"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:drawablePadding="1dp"
|
android:drawablePadding="1dp"
|
||||||
android:drawableTop="@drawable/divider_width"
|
android:drawableTop="@drawable/divider_width"
|
||||||
android:paddingTop="@dimen/medium_margin"
|
android:paddingTop="@dimen/small_margin"
|
||||||
android:textSize="@dimen/normal_text_size"
|
android:textSize="@dimen/normal_text_size"
|
||||||
android:textStyle="bold"/>
|
android:textStyle="bold"/>
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:paddingLeft="@dimen/activity_margin"
|
android:paddingLeft="@dimen/medium_margin"
|
||||||
android:paddingRight="@dimen/activity_margin"
|
android:paddingRight="@dimen/medium_margin"
|
||||||
android:textSize="@dimen/normal_text_size"/>
|
android:textSize="@dimen/normal_text_size"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -26,10 +26,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:paddingBottom="@dimen/medium_margin"
|
android:paddingBottom="@dimen/small_margin"
|
||||||
android:paddingLeft="@dimen/normal_margin"
|
android:paddingLeft="@dimen/medium_margin"
|
||||||
android:paddingRight="@dimen/normal_margin"
|
android:paddingRight="@dimen/medium_margin"
|
||||||
android:paddingTop="@dimen/normal_margin"
|
android:paddingTop="@dimen/medium_margin"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_plus"/>
|
android:src="@drawable/ic_plus"/>
|
||||||
|
|
||||||
|
@ -40,9 +40,9 @@
|
||||||
android:layout_below="@+id/widget_event_new_event"
|
android:layout_below="@+id/widget_event_new_event"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:divider="@null"
|
android:divider="@null"
|
||||||
android:dividerHeight="@dimen/medium_margin"
|
android:dividerHeight="@dimen/small_margin"
|
||||||
android:paddingBottom="@dimen/medium_margin"
|
android:paddingBottom="@dimen/small_margin"
|
||||||
android:paddingLeft="@dimen/activity_margin"/>
|
android:paddingLeft="@dimen/medium_margin"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_event_list_empty"
|
android:id="@+id/widget_event_list_empty"
|
||||||
|
|
Loading…
Reference in New Issue