G
G
grabbee2016-12-09 18:31:13
Android
grabbee, 2016-12-09 18:31:13

What is the correct way to name styles?

For example, there is a picture button in the title of the dialog, in the body and in the bottom toolbar. Then the style for two buttons from the header
- DialogToolbarImageButton.Remove
- DialogToolbarImageButton.Close
In the body
- DialogBodyImageButton.Favorite
Bottom
- DialogReplyImageButton.Send
- DialogReplyImageButton.Smiles
On CSS it was easier (something like this)
.dialog .toolbar .image_button .remove
That is, in addition to inheritance, there is also a semblance of nesting. Is there any way to implement this in Android?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2016-12-09
@nickolyashka

Turn to BEM from Yandex, the coder will be pleased.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question