File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,23 @@ export class SomeComponent {
99
99
- ** font-size** - checkbox is sized to text from here : default 15
100
100
- ** border-width** - set the line width of the checkbox element: iOS only
101
101
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
+
102
119
## Demo Setup
103
120
* npm install tns-platform-declarations
104
121
* npm preparedemo
You can’t perform that action at this time.
0 commit comments