Meaning of R.layout.activity_main in android development (JAVA language)

后端 未结 5 1972
清酒与你
清酒与你 2020-12-31 09:25

What is the meaning of R.layout.activity_main ?

I understand that \".\" operator is used to define variables of a particular object but in this case its been used t

5条回答
  •  萌比男神i
    2020-12-31 10:02

    R is an auto-generated class, and describe the resources of your project. It contains static inner classes. layout is one of them. R.layout refers to the inner class called layout. activity_main is a public static final member of the class layout

提交回复
热议问题