![]() |
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. |
![]() |
Murilo · Jetpack编写导航栏项目图标 8 月前 |
![]() |
KolaYAndr · 活动RESULT_OK似乎从未发生过 8 月前 |
![]() |
psycho_pat · Android应用程序中的权限 9 月前 |
|
FarazFiroz · 如何将argb转换为描述性文本颜色 9 月前 |
![]() |
Daniel · Unity Android游戏支持的设备数量太少 9 月前 |