Skip to content

Commit

Permalink
fix layout padding
Browse files Browse the repository at this point in the history
fix layout padding in widgetlist and config activity layouts.
  • Loading branch information
forrestguice committed Sep 22, 2016
1 parent ff803c2 commit e2fb1d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/src/main/res/layout/layout_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:orientation="vertical" android:padding="8dp">
android:orientation="vertical" android:padding="@dimen/widgetActivity_padding">

<TextView android:id="@+id/activity_title"
android:layout_width="match_parent" android:layout_height="wrap_content"
Expand All @@ -44,7 +44,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scrollView"
android:layout_gravity="center_horizontal" >
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/widgetActivity_padding_inner">

<LinearLayout
android:orientation="vertical"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/layout_widgetlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:padding="8dp">
android:orientation="vertical" android:padding="@dimen/widgetActivity_padding">

<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:text="@string/configLabel_widgetList"
style="?android:attr/listSeparatorTextViewStyle" />

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values-v14/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<dimen name="widget_size_percell">74px</dimen>
<dimen name="widget_size_less">2px</dimen>

<dimen name="widgetActivity_padding">8dp</dimen>
<dimen name="widgetActivity_padding_inner">0dp</dimen>

</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@
<fraction name="anim_slideout_move_left_toDelta">-110%</fraction>
<fraction name="anim_slideout_move_right_toDelta">110%</fraction>

<dimen name="widgetActivity_padding">0dp</dimen> <!-- padding around activity title + content -->
<dimen name="widgetActivity_padding_inner">8dp</dimen> <!-- padding around activity content -->

</resources>

0 comments on commit e2fb1d4

Please sign in to comment.