appcompat-v7:23打破png透明度?

时间:2016-05-16 21:12:51

标签: android appcompat-v7-r23

我不得不升级我的gradle文件以使用appcompat-v7:23.2.0,但它打破了png透明像素。

之前,我的gradle看起来像这样:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.google.code.gson:gson:2.3'
    //etc...

以及其中一个片段的部分截图:

enter image description here

现在我升级了gradle,看起来像这样:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.google.code.gson:gson:2.3'
    //etc...

但是当我运行代码时,我这是同一片段的结果输出:

enter image description here

这里是xml的一部分,其中包含了这些图像,其中" @ drawable / icon_uber"只是指向icon_uber.png

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:uber="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">

    <!-- a bunch of stuff -->

    <ImageButton
        android:id="@+id/icon_uber_id"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/icon_uber" />

我看了这个帖子:

Transparency issue with Theme.AppCompat.NoActionBar.Translucent

但没有答案。

任何人都有解决此问题的方法吗?我不能回到v7:22,因为我有其他必须使用v7:23的依赖项。

谢谢你!

0 个答案:

没有答案