Niv
Niv

Reputation: 13

There's no main.xml in /res/layout

I've started reading "Building your first app" in developer.android.com.
When they start creating different UI, they refer you to /res/layout/main.xml file. But I can't find it - under /res/layout There's only activity_first.xml file ( My activity' s name is FirstActivity ).

I've read that it might be because of API16, but I get the same problem with API15.

Any ideas? Thanks! :)

I use Eclipse 3.7.2 ( Indigo ) On Linux Debian, if it matters

Upvotes: 1

Views: 3509

Answers (1)

Samir Mangroliya
Samir Mangroliya

Reputation: 40416

In new ADT 20 ,there are activity_main if your Activity name is MainActivity

i think activity_first.xml is your main.xml..see in your Activity have setContentView(R.layout.activity_first);

Upvotes: 1

Related Questions