Skip to content

Commit 29d0480

Browse files
authored
Merge pull request #204 from cogk/fix-center-icon-in-prev-next-buttons
fix: Fix alignment of arrow icon in prev/next buttons
2 parents 5bb7223 + beaf5db commit 29d0480

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

features/feature_records/src/main/res/layout/records_container_fragment.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
style="@style/ContainerRangeButton"
3939
android:layout_width="0dp"
4040
android:layout_marginStart="8dp"
41+
app:iconGravity="textStart"
42+
app:iconPadding="0dp"
4143
app:layout_constraintBottom_toBottomOf="parent"
4244
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerToday"
4345
app:layout_constraintStart_toStartOf="parent" />
@@ -57,7 +59,8 @@
5759
android:layout_width="0dp"
5860
android:layout_marginEnd="8dp"
5961
app:icon="@drawable/arrow_right"
60-
app:iconGravity="end"
62+
app:iconGravity="textEnd"
63+
app:iconPadding="0dp"
6164
app:layout_constraintBottom_toBottomOf="parent"
6265
app:layout_constraintEnd_toEndOf="parent"
6366
app:layout_constraintStart_toEndOf="@id/btnRecordsContainerToday" />

features/feature_statistics/src/main/res/layout/statistics_container_fragment.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
style="@style/ContainerRangeButton"
1818
android:layout_width="0dp"
1919
android:layout_marginStart="8dp"
20+
app:iconGravity="textStart"
21+
app:iconPadding="0dp"
2022
app:layout_constraintBottom_toBottomOf="parent"
2123
app:layout_constraintEnd_toStartOf="@id/btnStatisticsContainerToday"
2224
app:layout_constraintStart_toStartOf="parent" />
@@ -45,7 +47,8 @@
4547
android:layout_width="0dp"
4648
android:layout_marginEnd="8dp"
4749
app:icon="@drawable/arrow_right"
48-
app:iconGravity="end"
50+
app:iconGravity="textEnd"
51+
app:iconPadding="0dp"
4952
app:layout_constraintBottom_toBottomOf="parent"
5053
app:layout_constraintEnd_toEndOf="parent"
5154
app:layout_constraintHorizontal_weight="1"

features/feature_statistics_detail/src/main/res/layout/statistics_detail_fragment.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
style="@style/ContainerRangeButton"
103103
android:layout_width="0dp"
104104
android:layout_marginStart="8dp"
105+
app:iconGravity="textStart"
106+
app:iconPadding="0dp"
105107
app:layout_constraintBottom_toBottomOf="@id/btnStatisticsDetailToday"
106108
app:layout_constraintEnd_toStartOf="@id/btnStatisticsDetailToday"
107109
app:layout_constraintStart_toStartOf="parent" />
@@ -130,7 +132,8 @@
130132
android:layout_width="0dp"
131133
android:layout_marginEnd="8dp"
132134
app:icon="@drawable/arrow_right"
133-
app:iconGravity="end"
135+
app:iconGravity="textEnd"
136+
app:iconPadding="0dp"
134137
app:layout_constraintBottom_toBottomOf="@id/btnStatisticsDetailToday"
135138
app:layout_constraintEnd_toEndOf="parent"
136139
app:layout_constraintStart_toEndOf="@id/btnStatisticsDetailToday" />

0 commit comments

Comments
 (0)