Hi I am developing an application in android using Java.I have added a new java class in my project which extends ListActivity.But I did it manually,so the .xml file was not produced.Is there a way I can create a new .xml file and somehow connect it with the newly created class?
Share
[assuming you are using eclipse]
to create the layout file (XML):
to use this xml in your activity:
setContentView()method to refer the xml file creatednew.xmland you created this in the way i mentioned above you saysetContentView(R.layout.new);