Title: Vertically center label on android by default · Issue #3829 · NativeScript/NativeScript · GitHub
Open Graph Title: Vertically center label on android by default · Issue #3829 · NativeScript/NativeScript
X Title: Vertically center label on android by default · Issue #3829 · NativeScript/NativeScript
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 i...
Open Graph 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 setG...
X 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 setG...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/3829
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vertically center label on android by default","articleBody":"### Tell us about the problem\r\nThe 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. \r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 2.5.2\r\n- Cross-platform modules: 2.5.1\r\n- Runtime(s): 2.5.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. tns create \"LabelTest\" --ng\r\n2. Open items.component.html\r\n3. Remove the \u003cListView ....\r\n4. Add `\u003cLabel style=\"height: 100%\" text=\"This should be in the middle of the screen\"\u003e\u003c/Label\u003e`\r\n5. tns run ios\r\n6. The text is in the middle of the screen\r\n7. tns run android\r\n8. The text is top-aligned\r\n\r\n\r\n\r\n\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/43224653-vertically-center-label-on-android-by-default?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/dbenninger","@type":"Person","name":"dbenninger"},"datePublished":"2017-03-20T09:33:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/3829/NativeScript/issues/3829"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5da67e47-9834-38c6-7f3b-634b07f34621 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86FE:3E24C6:D05DC8:11FDFEB:69650E55 |
| html-safe-nonce | cfe7e5e0268e8e317370be8c2c44fc03f93dd84eaa231ca2d9d90a21dd86f31a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkZFOjNFMjRDNjpEMDVEQzg6MTFGREZFQjo2OTY1MEU1NSIsInZpc2l0b3JfaWQiOiIxNjMxMjI4Mjg0NDM2Mjg3MDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fd4f01cfcc5fffd7bba3b6b6fc6ece54d3e32e19656d73d7171fc88ec09ac34a |
| hovercard-subject-tag | issue:215366525 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/3829/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2279cc5759292849afcccaafb0c4df2b7ee15ff6e547f6cedb1ffc21819d6f85/NativeScript/NativeScript/issues/3829 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2279cc5759292849afcccaafb0c4df2b7ee15ff6e547f6cedb1ffc21819d6f85/NativeScript/NativeScript/issues/3829 |
| og:image:alt | 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 setG... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dbenninger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 361e28552f448e2f3c84aa6d1d70cc09abfcd936966fa76682f0659b4f5f51d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bb94fc71fe8da8a45636ada2c7618bc2b49b9cbe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width