Difference between R.layout and android.R.layout

前端 未结 4 1760
有刺的猬
有刺的猬 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:14

    R.layout.* is provided in our application that is built by us whereas android.R.* is something that comes with Android SDK that means they are predefined.

提交回复
热议问题