His*_*out 94 android background
我有一个.png徽标,我的应用程序没有背景,当我将它作为图像资产添加到Android工作室我被迫有一个背景.十六进制字段不接受8位颜色代码,仅限6位数.无论如何都要保持背景不可见?
Hel*_*rld 187
要使背景透明,请设置shape为None.见下图:
编辑:
对于Android Studio 3.0,您可以从LegacyTab 设置它
Pol*_*lar 34
我使用Android Studio 3.0.1,如果以上回答不为你工作,尝试改变icon type成Legacy并选择Shape到None,默认的是Adaptive and Legacy.
注意:某些设备已经安装了一个启动器,可以在图标中自动添加白色背景,这是正常的.
小智 18
在Android Studio 3.0上,上述方法对我不起作用.它仍然显示背景.我刚做了一个空背景文件
<?xml version="1.0" encoding="utf-8"?>
<vector
android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
</vector>
Run Code Online (Sandbox Code Playgroud)
除了完整的渗出层外,这种方法有效
gad*_*olf 17
你有两种方式:
1)在Background Layer> Scaling中,将Resize减小为1
然后在Legacy> Legacy Icon中将Shape设置为None
2)在背景图层>缩放>源资源中,您可以将图像设置为1x1像素(或任何大小)transparent.png图像(您已经创建).
然后在Legacy> Legacy Icon中将Shape设置为None
这只是另一个解决方法。
而且你很好。
| 归档时间: |
|
| 查看次数: |
82174 次 |
| 最近记录: |