Android: named resources
•
Android
This is a problem for Android developers, but it is not a programming related problem because it only affects developers
What is the most common convention for naming various resources (such as color, drawing, string, etc.)?
I have no doubt about naming my layout activity_ Main or layout_ Secondary. However, I always doubt the named resources mentioned above. I don't know whether these resources should be named after using them or content. For example:
>Color: Dark_ blue vs text_ highlighted > Drawable:blue_ gradient vs top_ bar_ Background > string: Welcome_ to_ app vs first_ time_ prompt
Are there any good practice resources for community creation?
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码