Skip to content

Commit

Permalink
Fix text size on Devices connected screen
Browse files Browse the repository at this point in the history
Adds a fix for issue #61
  • Loading branch information
ekigamba committed Jun 17, 2019
1 parent 615dd3e commit 6b1241b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
11 changes: 6 additions & 5 deletions p2p-sync/src/main/res/layout/fragment_devices_connected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
app:layout_constraintGuide_percent="0.2"/>

<ImageView
android:id="@+id/iv_devicesConnectedFragment_errorMark"
android:id="@+id/iv_devicesConnectedFragment_connectedIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/imageViewGuideline"
Expand All @@ -24,12 +25,12 @@
android:id="@+id/tv_devicesConnectedFragment_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/iv_devicesConnectedFragment_errorMark"
app:layout_constraintTop_toBottomOf="@id/iv_devicesConnectedFragment_connectedIcon"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:textColor="@android:color/black"
android:textSize="26sp"
android:layout_marginTop="40dp"
android:textSize="@dimen/start_transfer_title_size"
android:layout_marginTop="@dimen/start_transfer_title_margin"
android:text="@string/devices_connected"/>

<TextView
Expand All @@ -41,7 +42,7 @@
app:layout_constraintRight_toRightOf="parent"
android:textColor="@android:color/black"
android:layout_marginTop="15dp"
android:textSize="21sp"
android:textSize="@dimen/start_transfer_message_size"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:gravity="center"
Expand Down
6 changes: 6 additions & 0 deletions p2p-sync/src/main/res/values-sw320dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="start_transfer_title_size">21sp</dimen>
<dimen name="start_transfer_message_size">14sp</dimen>
<dimen name="start_transfer_title_margin">5dp</dimen>
</resources>
6 changes: 6 additions & 0 deletions p2p-sync/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="start_transfer_title_size">26sp</dimen>
<dimen name="start_transfer_message_size">21sp</dimen>
<dimen name="start_transfer_title_margin">40dp</dimen>
</resources>

0 comments on commit 6b1241b

Please sign in to comment.