Android
Programming and Technical
Programming
Technical
Is it possible to create an activity without setContentView(R.layout.main) xml file?
Options
1) Yes
2) No
3) None
4) Question is not correct
Read Solution (Total 2)
-
- 1) Yes ,We can create UI at runtime.
Example- TextView tv= new TextView(this);
tv.setText("Hello World");
setContentView(tv) ; - 5 years agoHelpfull: Yes(1) No(0)
- 2) No without that UI is not Possible
- 7 years agoHelpfull: Yes(0) No(1)
Android Other Question