Skip to content
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

控件大小可否自适应. #2

Open
zhichong opened this issue Feb 5, 2018 · 2 comments
Open

控件大小可否自适应. #2

zhichong opened this issue Feb 5, 2018 · 2 comments

Comments

@zhichong
Copy link

zhichong commented Feb 5, 2018

控件大小设置固定的话会显示不全.下面的拖动按钮设置了图片也是无法调整大小的.希望大神有空可以优化一下.

@luozhanming
Copy link
Owner

luozhanming commented Feb 6, 2018

高度是不建议固定高度的,用wrap_content。但后续会调整图片的宽高比例,不固定死高度。宽度的话尽量不要低于屏幕2/3。至于拖动条的样式高度尺寸是由其drawable的.,参考源码里po_seekbar.xml和thumb.xml,有规定尺寸。

@YaoSep
Copy link

YaoSep commented Jun 3, 2024

高度是不建议固定高度的,用wrap_content。但后续会调整图片的宽高比例,不固定死高度。宽度的话尽量不要低于屏幕2/3。至于拖动条的样式高度尺寸是由其drawable的.,参考源码里po_seekbar.xml和thumb.xml,有规定尺寸。

现在想自定义图片高度该怎么设置呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants