Assigned
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Can you attach / share a project that reproduces the issue?
sa...@gmail.com <sa...@gmail.com> #3
Now i sure this is viewpager2's bug.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
lo...@gmail.com <lo...@gmail.com> #5
deleted
lo...@google.com <lo...@google.com> #6
deleted
ce...@gmail.com <ce...@gmail.com> #7
al...@google.com <al...@google.com> #8
Any update? Coming across similar issues with shortcuts and other entries
[Deleted User] <[Deleted User]> #9
Seriously hoping this hasn't been forgotten about.
jv...@google.com <jv...@google.com>
rp...@google.com <rp...@google.com> #10
(Moving) Is this the right component for feature requests regarding additional support for VectorDrawable?
ni...@google.com <ni...@google.com>
zl...@gmail.com <zl...@gmail.com> #11
Any update on this? Ran in to this problem recently, especially now that the project I'm working has migrated more to using vector based drawables, and layer-lists for some of our custom UI components, it's likely this will become more common. Thanks!
af...@gmail.com <af...@gmail.com> #12
Well, there's 1 way of doing it:
In the layout:
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_some_icon"
app:tint="@color/ic_some_icon" />
In the drawable folder, you just have the vector xml.
In the color folder, you put something like this:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?attr/iconInactiveColor" android:state_enabled="false" />
<item android:color="?attr/iconActiveColor" />
</selector>
Done. It's not ideal but this is an okay workaround I guess.
wy...@gmail.com <wy...@gmail.com> #13
met with the same case,I have changed most of the icons from png to svg, but still some remaining because of they are used in selectors xml
ps...@gmail.com <ps...@gmail.com> #14
Same problem, we will have to return raster drawables to our icons library.
Description
After a big effort porting all the icons of our app to VectorDrawables we realize that there is one part of the framework that is not ready to use VectorDrawables in all the Android versions. The drawable XMLs like layer-list, selector and similar.
We have an Icon Kit with all the icons in one color, black in this case, and when we need to use them we tint the icon normally. The problem is that in the layer-list and similar this could not be done because the <item> and <bitmap> doesn't support or vector drawable or tint so we have to create exact copies of the icons with different color finishing with ic_home_24dp, ic_home_red_24dp, ic_home_white_24dp... or use java code to generate the drawables.
So, in resume, could you add support in <bitmap> or <item> to let us use VectorDrawable and tint them?