A
A
Alexander Kolmachikhin2019-01-02 09:21:24
Java
Alexander Kolmachikhin, 2019-01-02 09:21:24

How to change attribute values ​​of drawable elements by referring to their name?

5c2c5b8c11561452465703.png
I need to change attributes of drawable depending on conditions. In xml, a separate path can be given a name. But how do you refer to an element by its name in order to programmatically change its values?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kolmachikhin, 2019-01-02
@Alexander_Kolmachikhin

Found a library that solves this problem - https://github.com/devendroid/VectorChildFinder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question