Search code examples
javaandroidr.java-file

Meaning of values assigned to properties in R.java


What is the meaning of 0x7f05001c in R.java file of an android project

public static final int action_bar = 0x7f05001c;

Solution

  • R.java is a auto generated file in which reference of resources such as strings, drawbles, layouts, and styles are automatically added. In your question 0x7f05001c is just a reference id of action_bar.

    For example: in activity we always write

    TextView v = (TextView)findViewById(R.id.something);
    

    In this we are getting the reference of Texview which is automatically generated in R.java