![]() |
1
0
只需为您的
因为你的视图还没有大小。当您使用wrap_content时,您没有任何要包装的内容。 |
![]() |
2
0
|
![]() |
3
0
需要为至少一个imageview指定大小或可绘制。 对于渐变可绘制,可以按照上面的回答进行,现在imageview根据可绘制的大小进行包装。 否则,如果imageview被赋予了一个大小,根据文档:-
1.从xml中提取图纸。//在xml中定义drawable的大小。 2。 You can also draw your shape as its own custom view and add it to a layout in your app. |
![]() |
danny · 如何在kotlin中使用图形2d与paint() 1 年前 |
![]() |
Vetalll · Java、JDBC在重复密钥更新通配符上的插入 1 年前 |
![]() |
jvargas · 如何获取上个月的第一天和最后一天以及一年的第一天 2 年前 |
![]() |
Michel · 在Android上后台播放音频超过一分钟 2 年前 |
![]() |
Ashish Joshi · 未使用导航图弹出片段 2 年前 |