-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
改用drm时的布局显示问题 #68
Comments
drm指的是linux下的Direct Rendering Manager吗? 如果是,drm与布局应该没关系。在PC上可以重现不? |
麻烦贴一个最小可重现的 XML上来吧。谢谢 |
XML代码:
|
在去年十月份的版本里,子控件的w x y这些位置参数都是基于父控件的位置信息决定的,都是相对值 |
我这里没有style文件,看不出了。你这样改一下试试: <list_view x="7" y="5" w="100%" h="100%" > 改成 <list_view x="0" y="0" w="100%" h="100%" > |
list_item不要指定x/y/w(由list view layouter计算),h不能用百分比。你可以把list_item设置为透明色,然后在list item里放其它控件达到类似的效果。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在采用drm时,在UI设计时遇到一个问题,在样式设计若采用相对定位布局时,发现其位置相对较宽,但是采用绝对定位时又没有这样的问题。是否之前有这样的问题,又或者有没有遇到这个额问题?望解答。
The text was updated successfully, but these errors were encountered: