Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
DND buttons layout adjustments, fixes #32
Browse files Browse the repository at this point in the history
Added maxWidth and top alignement
  • Loading branch information
mudar committed Jan 29, 2018
1 parent 63ad616 commit 23e3d8f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="16dp">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="16dp">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="16dp">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="32dp">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/dnd_modes_background"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="16dp">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/dnd_modes_background"
android:gravity="center"
android:gravity="center_horizontal|top"
android:orientation="horizontal"
android:paddingBottom="16dp"
android:paddingTop="16dp">
Expand Down
1 change: 1 addition & 0 deletions PeaceOfMind+/app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<!--Dnd Modes-->
<dimen name="dnd_modes_height">256dp</dimen>
<dimen name="dnd_btn_wax_width">80sp</dimen>

<!--Splash-->
<dimen name="splash_title_text">24sp</dimen>
Expand Down
1 change: 1 addition & 0 deletions PeaceOfMind+/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<item name="android:layout_marginEnd">8dp</item>
<item name="android:drawablePadding">8dp</item>
<item name="android:gravity">center_horizontal|top</item>
<item name="android:maxWidth">@dimen/dnd_btn_wax_width</item>
</style>

<style name="splashDescText">
Expand Down

0 comments on commit 23e3d8f

Please sign in to comment.