Friday, 5 March 2021

What is R.java and Why it is there?


What is R.java?


R.java is just only a java class which generated by the android IDE to keep all unique values for the related project.


Why it is used?


When we make our design screens and used some views for the designing like EditText, TextView, ImageView, Button etc. At that time we put some id for the Views to manage at runtime, now the android IDE generate the unique hexadecimal id for those view's id which are created by us and keep all those unique hexadecimal ids in R.java file to avoid the dulicacy.


No comments:

Post a Comment