Skip to content

Commit

Permalink
Reduce main layout guideline percent on low-resolution devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisar945 committed Apr 9, 2024
1 parent 782f079 commit 7bf7bd6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout-h380dp-land/main_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.06" />
app:layout_constraintGuide_percent="@integer/guide_line_percent" />

<ImageView
android:id="@+id/logoImage"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout-h680dp/main_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.16" />
app:layout_constraintGuide_percent="@integer/guide_line_percent" />

<ImageView
android:id="@+id/logoImage"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/main_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.18" />
app:layout_constraintGuide_percent="@integer/guide_line_percent" />

<ImageView
android:id="@+id/logoImage"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-h380dp-land/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="guide_line_percent" format="float" type="integer">0.06</item>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-h380dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="guide_line_percent" format="float" type="integer">0.08</item>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-h680dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="guide_line_percent" format="float" type="integer">0.16</item>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="guide_line_percent" format="float" type="integer">0.18</item>
</resources>

0 comments on commit 7bf7bd6

Please sign in to comment.