C
C
Chvalov2016-03-04 01:33:12
Java
Chvalov, 2016-03-04 01:33:12

Hierarchy in res/drawable how to implement?

You need to do something like this:
drawable.png
but as I understand it, Google has not yet given the possibility of such an implementation :(
Are there any options to somehow implement a hierarchy in res/drawable ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Dorofeev, 2016-03-04
@TechCloud

No, this mechanism does not support subdirectories.
If you do this, the resources will no longer be available
and the compiler will throw an error that the class R.javawas
incorrectly generated.
However, it is possible to "merger" resources into so-called
"sets". Link to documentation .
There is a special plugin for this!

O
one pavel, 2016-03-05
@onepavel

I support Alexander Dorofeev that it is worth reading the documentation,
and here are the recommendations for naming https://habrahabr.ru/post/111868/
resources

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question