Android Basic Grammar R.java Class Questions!

Asked 2 years ago, Updated 2 years ago, 20 views

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

2022-09-21 16:20

1 Answers

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.


2022-09-21 16:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.