Skip to content

Commit 6b74a2f

Browse files
Fix stroke sizes on android segmented control
1 parent d5ed5a0 commit 6b74a2f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Plugin.SegmentedControl.Maui/Platforms/Android/Resources/drawable/segmented_control_background.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<selector xmlns:android="http://schemas.android.com/apk/res/android">
33
<item android:state_checked="true">
4-
<inset android:insetRight="-1dp">
4+
<inset android:insetRight="-2dip">
55
<shape android:id="@+id/shape_id" xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
66
<solid android:color="@color/selected" />
7-
<stroke android:width="1dp" android:color="@color/selected" />
7+
<stroke android:width="1dip" android:color="@color/selected" />
88
</shape>
99
</inset>
1010
</item>
1111
<item android:state_checked="false">
12-
<inset android:insetRight="-1dp">
12+
<inset android:insetRight="-2dip">
1313
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
1414
<solid android:color="@color/normal" />
15-
<stroke android:width="1dp" android:color="@color/selected" />
15+
<stroke android:width="1dip" android:color="@color/selected" />
1616
</shape>
1717
</inset>
1818
</item>

Plugin.SegmentedControl.Maui/Platforms/Android/Resources/drawable/segmented_control_first_background.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<selector xmlns:android="http://schemas.android.com/apk/res/android">
33
<item android:state_checked="true">
4-
<inset android:insetRight="-1dp">
4+
<inset android:insetRight="-2dip">
55
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
66
<solid android:color="@color/selected" />
7-
<stroke android:width="1dp" android:color="@color/selected" />
7+
<stroke android:width="1dip" android:color="@color/selected" />
88
<corners android:topLeftRadius="2sp" android:bottomLeftRadius="2sp" />
99
</shape>
1010
</inset>
1111
</item>
1212
<item android:state_checked="false">
13-
<inset android:insetRight="-1dp">
13+
<inset android:insetRight="-2dip">
1414
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
1515
<solid android:color="@color/normal" />
16-
<stroke android:width="1dp" android:color="@color/selected" />
16+
<stroke android:width="1dip" android:color="@color/selected" />
1717
<corners android:topLeftRadius="2sp" android:bottomLeftRadius="2sp" />
1818
</shape>
1919
</inset>

Plugin.SegmentedControl.Maui/Platforms/Android/Resources/drawable/segmented_control_last_background.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<item android:state_checked="true">
44
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
55
<solid android:color="@color/selected" />
6-
<stroke android:width="1dp" android:color="@color/selected" />
6+
<stroke android:width="1dip" android:color="@color/selected" />
77
<corners android:topRightRadius="2sp" android:bottomRightRadius="2sp" />
88
</shape>
99
</item>
1010
<item android:state_checked="false">
1111
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
1212
<solid android:color="@color/normal" />
13-
<stroke android:width="1dp" android:color="@color/selected" />
13+
<stroke android:width="1dip" android:color="@color/selected" />
1414
<corners android:topRightRadius="2sp" android:bottomRightRadius="2sp" />
1515
</shape>
1616
</item>

0 commit comments

Comments
 (0)