[TIMOB-24812] font parameters do not work for Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | n/a |
| Reporter | ILAY SENER |
| Assignee | Gary Mathews |
| Created | 2017-06-10T13:25:37.000+0000 |
| Updated | 2017-06-15T09:28:21.000+0000 |
Description
setting font for Picker doesn't work in Alloy when testing on Android Emulator.
Steps:
Create a basic mobile app using Alloy.
Add following into index.xml.
Run the app.
Add following into index.tss
'.pick':{
font: {
fontSize: '40',
fontWeight: 'bold'
}
}
Run the app.
You will see no change to the font size or font weight.
Attached is the screengrab from my app using different font sizes and weights, but no change.
Attachments
| File | Date | Size |
|---|---|---|
| Screen Shot 2017-06-10 at 23.24.27.png | 2017-06-10T13:25:31.000+0000 | 42573 |
Defining
nativeSpinneruses Androids native [NumberPicker](https://developer.android.com/reference/android/widget/NumberPicker.html) which does not allow font properties to be set. This is unfortunately an Android limitation.