Android 和 iOS 标签中文本不一致 - appcelerator

发布于 2024-12-21 13:12:05 字数 141 浏览 4 评论 0原文

我正在尝试使用 appcelerator api 为用户配置文件布局元素。在 iOS 上,它会自动设置高度,以便显示所有文本。 android 中的相同代码似乎切断了文本的底部,我必须设置一个静态高度才能使其全部显示。我觉得这有些倒退了。还有其他人遇到过类似的问题吗?

I'm trying to lay out elements for a user profile using the appcelerator api. On iOS it automatically sets the height so all of the text is shown. The same code in android seems to cut off the bottom of the text, and I have to set a static height for it all to appear. I feel that this is somewhat backwards. Has anyone else had a similar problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

做个ˇ局外人 2024-12-28 13:12:05

如果将父元素的高度设置为“auto”,则应该没问题。在 Android 和 iOS 中。

当然,标签的高度也需要为“auto”。但请确保使用引号,它不知道变量 auto

If you set the height to "auto" for the parent element, it should be just fine. In both Android and iOS.

And of course, the height for the label needs to be also "auto". Make sure to use quotes though, it doesn't know the variable auto

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文