Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:57:45+00:00 2026-05-25T00:57:45+00:00

Are there conventions how to name resources in Android? For example, buttons, textViews, menus,

  • 0

Are there conventions how to name resources in Android? For example, buttons, textViews, menus, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:57:46+00:00Added an answer on May 25, 2026 at 12:57 am

    I don’t know whether there are any official recommendations.

    For ids in my layouts with widgets and containers, I use the convention:

    <layout>_<widget/container>_<name>
    

    I do the same strategy for any dimens, strings, numbers, and colors I use in those layouts. However, I do try generalizing. e.g if all buttons have a common textColor, I won’t prefix the name with the layout. The resource name would be ‘button_textColor’. If all textColors are using the same the resource it will be named ‘textColor’. For Styles, this is usually the case as well.

    For menu resources i use:

    menu_<activity>_<name>
    

    Animations are only different as you cannot use uppercase letters. Same goes for drawable xml resources, i believe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Entity Framework 4.1, are there alternatives to the naming conventions for Navigation
Is there some standard way to name indexes for SQL Server? It seems that
Is there a way to get the field name with the given getter method.
I understand there's gazillions of questions pertaining to conventions. I couldn't find much, however,
Is there any reason why you should or shouldn't name your form fields exactly
Possible Duplicate: What are the most common naming conventions in C? Is there a
The CRUD module cannot convert the meaningful class name in play framework. For example,
Are there any naming conventions for tables/fields within MySQL? I have found a big
I am tidying up my ancient Cocoa code to use modern naming conventions. There
Is there a convention for naming private functions in bash? I have a bash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.