Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
最史诗般的Android支持设计缺陷?我见过_Android_Android Support Library_Drawable_Android 6.0 Marshmallow_Android Tablayout - Fatal编程技术网

最史诗般的Android支持设计缺陷?我见过

最史诗般的Android支持设计缺陷?我见过,android,android-support-library,drawable,android-6.0-marshmallow,android-tablayout,Android,Android Support Library,Drawable,Android 6.0 Marshmallow,Android Tablayout,我在Android>6.0.1上发现了一个有趣的带有图像色调的bug。 我使用颜色过滤器为选中和未选中的选项卡图标着色。 像 是bug还是我做错了什么?堆栈溢出用于编程问题。你的问题是什么?除此之外,您还可以尝试25.1.0。@commonware,我更新了我的问题)@commonware,同样在25.1.0上issue@AntonA. 如果您觉得这是一个bug,可以在此处归档: private int[] tabIcons = { R.drawable.white_calend

我在Android>6.0.1上发现了一个有趣的带有图像色调的bug。 我使用颜色过滤器为选中和未选中的选项卡图标着色。 像


是bug还是我做错了什么?

堆栈溢出用于编程问题。你的问题是什么?除此之外,您还可以尝试25.1.0。@commonware,我更新了我的问题)@commonware,同样在25.1.0上issue@AntonA. 如果您觉得这是一个bug,可以在此处归档:
private int[] tabIcons = {
        R.drawable.white_calendar,
        R.drawable.white_magazine,
        R.drawable.white_pulse,
        R.drawable.white_error,
        R.drawable.white_user
};

public MainTabUtils setTabIcons() {
    for (int i = 0; i < tabLayout.getTabCount(); i++) {
        if (tabLayout.getTabAt(i) != null) {
            tabLayout.getTabAt(i).setIcon(tabIcons[i]);
            tabLayout.getTabAt(i).getIcon().setColorFilter(Color.parseColor("#00B0B0"), PorterDuff.Mode.SRC_IN);
        }
    }
    tabLayout.getTabAt(0).getIcon().setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);
    setActivityTitle(0);
    return this;
}
compile 'com.android.support:design:25.0.1'