Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
adityastic committed Jun 20, 2019
1 parent 4038901 commit 693f1e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/main/res/layout/fragment_draw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
android:layout_above="@id/tools_bar"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:layout_marginStart="50dp"
android:layout_marginEnd="50dp"
android:layout_marginStart="@dimen/draw_layout_margin"
android:layout_marginEnd="@dimen/draw_layout_margin"
app:drawState="@{viewModel.drawModeState}" />

<LinearLayout
Expand All @@ -32,12 +32,12 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:padding="10dp">
android:padding="@dimen/draw_layout_button_padding">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_margin="@dimen/draw_layout_button_padding"
android:gravity="center"
android:onClick="@{() -> viewModel.changeDrawState()}"
android:orientation="vertical">
Expand All @@ -57,7 +57,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_margin="@dimen/draw_layout_button_padding"
android:gravity="center"
android:onClick="@{() -> viewModel.changeEraseState()}"
android:orientation="vertical">
Expand All @@ -77,7 +77,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_margin="@dimen/draw_layout_button_padding"
android:gravity="center"
android:onClick="@{() -> viewModel.changeResetState()}"
android:orientation="vertical">
Expand All @@ -96,7 +96,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_margin="@dimen/draw_layout_button_padding"
android:gravity="center"
android:onClick="@{() -> viewModel.saveBadge()}"
android:orientation="vertical">
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@
<dimen name="content_text_size">16sp</dimen>
<dimen name="saved_badges_image">50dp</dimen>
<dimen name="draw_button_generic_dimen">48dp</dimen>
<dimen name="draw_layout_margin">50dp</dimen>
<dimen name="draw_layout_button_padding">10dp</dimen>
</resources>

0 comments on commit 693f1e4

Please sign in to comment.