Android 和 iOS 标签中文本不一致 - appcelerator
我正在尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果将父元素的高度设置为“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 variableauto