Skip to content

Commit cfd903c

Browse files
committed
Update styling info
1 parent 960a4ba commit cfd903c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ export class SomeComponent {
9999
- **font-size** - checkbox is sized to text from here : default 15
100100
- **border-width** - set the line width of the checkbox element: iOS only
101101

102+
## Styling [Android]
103+
- **checkStyle** - set to the name of your drawable
104+
- **checkPadding** - set the padding of the checkbox
105+
106+
Add the following to `app/App_Resources/Android/drawable/checkbox_grey.xml`
107+
```xml
108+
<?xml version="1.0" encoding="utf-8"?>
109+
110+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
111+
<item android:state_enabled="false" android:state_checked="true" android:drawable="@drawable/ic_checkbox_checked_incomplete" />
112+
<item android:state_enabled="false" android:state_checked="false" android:drawable="@drawable/ic_checkbox_grey_incomplete" />
113+
<item android:state_checked="true" android:drawable="@drawable/ic_checkbox_checked_grey"/>
114+
<item android:state_checked="false" android:drawable="@drawable/ic_checkbox_grey" />
115+
</selector>
116+
```
117+
118+
102119
## Demo Setup
103120
* npm install tns-platform-declarations
104121
* npm preparedemo

0 commit comments

Comments
 (0)