Difference between R.layout and android.R.layout

前端 未结 4 1768
有刺的猬
有刺的猬 2020-12-09 04:37

What is the difference between

   setContentView(R.layout.main);

and

ArrayAdapter arrayAdapter = new ArrayAdapter(this,
            


        
4条回答
  •  攒了一身酷
    2020-12-09 05:10

    R.layout.* are layouts you provide (in res/layout, for example).

    android.R.layout.* are layouts that ship with the Android SDK.

提交回复
热议问题