我在 CollapsingToolbarLayout 中有一个图像(与示例相同 https://github.com/chrisbanes/cheesesquare )。
但是,我想将背景的纵横比固定为 16:9。
我尝试设置android:layout_height="wrap_content",更新代码中的LayoutParams,但它不起作用。
有什么帮助吗?
最佳答案
通过将 ImageView 放在 PercentRelativeLayout 中解决。
关于android - CollapsingToolbarLayout with Image,固定纵横比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32448878/