Skip to content

Commit

Permalink
Set and override textview margins with dimens.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMartinus committed Mar 23, 2019
1 parent c9de882 commit b6f1359
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/src/main/res/layout/stepper_touch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
android:id="@+id/textViewNegative"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="@dimen/stepper_side_control_margin_start"
android:layout_marginStart="@dimen/stepper_side_control_margin_start"
android:text="@string/stepper_text_negative"
android:textSize="@dimen/stepper_side_control_text_size"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down Expand Up @@ -46,8 +46,8 @@
android:id="@+id/textViewPositive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginEnd="@dimen/stepper_side_control_margin_end"
android:layout_marginRight="@dimen/stepper_side_control_margin_end"
android:text="@string/stepper_text_positive"
android:textSize="@dimen/stepper_side_control_text_size"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="stepper_side_control_text_size">20sp</dimen>
<dimen name="stepper_side_control_margin_start">16dp</dimen>
<dimen name="stepper_side_control_margin_end">16dp</dimen>
</resources>

0 comments on commit b6f1359

Please # to comment.