标签: android navigation-drawer material-design
我正在为我的应用创建一个导航抽屉,就像 Google Playstore 应用一样。根据材料设计指南,顶部的图像应该是 16:9 material design navigation drawer dimensions的比例。 我使用的是16:9图像,但不同屏幕尺寸和横向模式下的布局不稳定。 我如何在xml中执行此操作。
答案 0 :(得分:0)
android:adjustViewBounds="true"
到你的imageView
Look this关于图片比例