It's a simple question, so I tried to find it through Google search, but it's hard to find, so I'm posting a question Is id an internal class of R.java on Android?
android
When you create an id in the layout or place an image or an asset file in the resource directory, it automatically creates a field that fits it in R.java. These fields are created arbitrarily by the app to refer to resources.
The class is automatically created, so don't worry about it, and for the ID xxx
we created, you can use the image yyy.jpg
in the drawable
directory of the resource directory as R.id.xxx
.
© 2024 OneMinuteCode. All rights reserved.