What is the use of SetContentView in Android?

Khánh Đoan

New member
What is the use of SetContentView in Android?
Answer
SetContentView is used to fill the window with the UI provided from layout file incase of setContentView(R. layout. somae_file). Here layoutfile is inflated to view and added to the Activity context(Window).
 

Tìm kiếm

Back
Top