Update spacing in suggestion/condition header and footer.

Adjust the top/bottom padding for the header and footer so that the
content is center-aligned.

Change-Id: I01c0baf770abf3a8767a016a758ee1794403598b
Fix: 63670820
Test: Visual
This commit is contained in:
Doris Ling
2017-07-14 11:45:54 -07:00
parent 8e1f509b5d
commit 0018f1680f
4 changed files with 16 additions and 20 deletions

View File

@@ -20,8 +20,8 @@
style="@style/SuggestionConditionStyle"
android:layout_width="match_parent"
android:layout_height="44dp"
android:paddingTop="4dp"
android:paddingEnd="16dp"
android:paddingTop="10dp"
android:paddingEnd="10dp"
android:orientation="horizontal"
android:gravity="end">

View File

@@ -20,16 +20,13 @@
style="@style/SuggestionConditionStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:orientation="vertical">
<Space
android:id="@+id/top_space"
android:layout_width="match_parent"
android:layout_height="9dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_height="36dp"
android:layout_centerHorizontal="true">
<FrameLayout
@@ -87,8 +84,4 @@
</RelativeLayout>
<Space
android:layout_width="match_parent"
android:layout_height="12dp"/>
</LinearLayout>

View File

@@ -329,4 +329,8 @@
<dimen name="battery_meter_width">66dp</dimen>
<dimen name="battery_meter_height">100dp</dimen>
<!-- Suggestion/condition header padding -->
<dimen name="suggestion_condition_header_padding_collapsed">10dp</dimen>
<dimen name="suggestion_condition_header_padding_expanded">5dp</dimen>
</resources>