You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Android uses XML to define the layout of its user interface elements. The structure and naming of XML elements are important in ensuring that the user interface is well-defined, easy to understand, and maintainable.
Here are some general naming conventions for Android XML files:
Basic Principle
<WHAT>-<WHERE>-<DESCRIPTION>-<SIZE>
WHAT
Indicate what the resource actually represents, often a standard Android view class. Limited options per resource type.
ex) activity, fragment, view, item, layout...
WHERE
Describe where it logically belongs in the app. Resources used in multiple screens use all, all others use the custom part of the Android view subclass they are in.
ex) all, main, home, login, user...
DESCRIPTION
Differentiate multiple elements in one screen.
ex) title, content, info, profile...
SIZE (optional)
Either a precise size or size bucket. Optionally used for drawables and dimensions.