-
Notifications
You must be signed in to change notification settings - Fork 501
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
在list的item布局里高度百分比不显示 #34
Comments
你的item 外层viewgroup 的高度 应该是wrap_content吧,,不对,listview的item高度其实就是wrap_content |
@qq530402037 请问下你是怎么做的,我怎么搞在列表里也显示不出来。如下: <com.zhy.android.percent.support.PercentLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
</com.zhy.android.percent.support.PercentLinearLayout> |
<com.zhy.android.percent.support.PercentLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
</com.zhy.android.percent.support.PercentLinearLayout> |
您好,弱弱的问一下: 对于值可以取:10%w , 10%h , 10% , 10%sw , 10%sh 这里的sw 和sh 是什么意思?? |
@cjcj125125 screen w/h 屏幕宽度高度 ,w/h是基于父View的,sw/sh是基于屏幕的 |
在list的item布局里使用app:layout_heightPercent="10%h"的话,控件就不会有高度了,显示不出来。必须要用app:layout_heightPercent="10%sh"才行。
其他地方可以,可是使用sh sw在布局文件预览里看不到效果
The text was updated successfully, but these errors were encountered: