Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Vector Images #22

Open
KennyGoers opened this issue Apr 28, 2017 · 4 comments
Open

Vector Images #22

KennyGoers opened this issue Apr 28, 2017 · 4 comments

Comments

@KennyGoers
Copy link

When trying to get a full height permanent selection using app:rrbg_selectorFullSize="true" text is visible but the images aren't shown. Is there a different way to not have the underline, but have the background change on the selected item?

@KennyGoers
Copy link
Author

KennyGoers commented Apr 28, 2017

Followup, seems to be related to the project theme, as using the plain "Material" theme it works as expected. What color is used for the full size option for inverting the icon?

@KennyGoers
Copy link
Author

Guess I should be more slow to place issues! The problem is with using Vector images. I was running on a v19 emulator. I suggest using AppCompatResources.getDrawable(), its in the newer API compat libraries or AppCompatImageView. I would do a pull request, but having issues running/building the sample app, some weird error about duplicate BuildConfigs.

@KennyGoers
Copy link
Author

BTW, very cool component when you need it!

@KennyGoers KennyGoers changed the title rrbg_selectorFullSize covers images Vector Images Apr 28, 2017
@ceryle
Copy link
Owner

ceryle commented May 2, 2017

Hi Kenny,
I faced with the same error when I was using Api19 emulator. I changed project's package name and it now runs without any error. To solve vector problem, I followed your advice. I changed ImageView to AppCompatImageView which gets resId by using AppCompatResources.getDrawable() method. When I run the project on Api19 emulator and on a Api21 device, I didn't see any vector image problem. I believe it works now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants