-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Tell us about the problem
The text of a label is vertically centered by default on iOS, but not on Android. It would be nice if the label on Android behaves the same by default. I think adding setGravity(CENTER_VERTICAL) to the android implementation would solve this.
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
- CLI: 2.5.2
- Cross-platform modules: 2.5.1
- Runtime(s): 2.5.0
Please tell us how to recreate the issue in as much detail as possible.
- tns create "LabelTest" --ng
- Open items.component.html
- Remove the <ListView ....
- Add
<Label style="height: 100%" text="This should be in the middle of the screen"></Label> - tns run ios
- The text is in the middle of the screen
- tns run android
- The text is top-aligned
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
pacome2017, Zefling, Yura13 and MrSnoozles