Skip to content

Commit 2032271

Browse files
Merge pull request #28 from thomasgalliker/stroke-size-android-fix
Merge stroke-size-android-fix into develop
2 parents d5ed5a0 + 12ee99d commit 2032271

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
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>

Plugin.SegmentedControl.Maui/Plugin.SegmentedControl.Maui.csproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,23 @@
3838
<Company>superdev GmbH</Company>
3939
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
4040
<PackageReleaseNotes>1.4
41-
- Improved handling for automatic disconnect handler logic
41+
- Improved handling for automatic disconnect handler logic.
42+
- Fix for Android segmented control stroke sizes.
4243

4344
1.3
44-
- Bug fixes
45-
- Add support for AppShell apps
45+
- Bug fixes.
46+
- Add support for AppShell apps.
4647

4748
1.2
48-
- Children property is no longer public; use ItemsSource instead
49-
- Improved error handling in SegmentedControlOption
50-
- Several bug fixes and internal refactorings
49+
- Children property is no longer public; use ItemsSource instead.
50+
- Improved error handling in SegmentedControlOption.
51+
- Several bug fixes and internal refactorings.
5152

5253
1.1
53-
- Add new properties FontFamily, FontSize, FontAttributes
54+
- Add new properties FontFamily, FontSize, FontAttributes.
5455

5556
1.0
56-
- Initial release
57+
- Initial release.
5758
</PackageReleaseNotes>
5859
<Copyright>Copyright $([System.DateTime]::Now.ToString(`yyyy`)) © Thomas Galliker</Copyright>
5960
<PackageReadmeFile>README.md</PackageReadmeFile>

0 commit comments

Comments
 (0)