Which is right xml-based way to load view layout?

Which is right xml-based way to load view layout?




A. setContentView(new XmlLayout())
B. loadContentView(new LinearLayout())
C. setContentView(R.layout.some_layout)
D. loadContentView(R.layout.some_layout)


Answer: C


Learn More :