我正在向我的LinearLayout添加一个图像。一些非常基础的东西。
<ImageView
android:id="@+id/my_logo"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_gravity="left"
android:src="@drawable/img_logo" />右键单击项目文件夹,选择image,然后选择my_logo.png或my_logo.jpg文件的路径。但是在设计和我的手机上我只看到一个白色的方块

发布于 2019-10-12 05:55:17
我认为这是一个错误,也许你可以尝试用这个https://romannurik.github.io/AndroidAssetStudio/创建图标
发布于 2021-03-19 22:50:37
在res > themes > themes.xml used中
用android:tint代替android:tintMode
https://stackoverflow.com/questions/58329704
复制相似问题