• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML in the android

 
hazim aleid
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

is there any xml file required in the android, since we can use the java code direct?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't create an Android app without setting up multiple XML files, chief and foremost the AndroidManifest.xml file. Your IDE may do this for you, though.

I don't understand where you see the connection between using XML files and Java code; maybe you can elaborate on that.
 
hazim aleid
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dear,
i meant the xml for the layout, not for mainfest, can i create android application coding only?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create layouts programmatically, but the question is: why would you? Using the API instead of the XML files provides some flexibility, but that comes with a lot more work, IMO.
 
hazim aleid
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dear,
because the views are not stratforward, i need to customize the views.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. If you are looking to customize views dynamically, you can make use of programmatic access to build them.
 
hazim aleid
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dears.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!