0

I have created a new Activity through androidManifest.xml as it was described here: Best way to add Activity to an Android project in Eclipse?

I hava a class DrugieOkno and I run it from the MainActivity by

Intent intent = new Intent(this,DrugieOkno.class);
    startActivity(intent);

but I would like to be able to design it in the way I designed the MainActivity window. What I suppose to do to have Access to Graphical Layout of the DrugieOkno (this additional Activity) I work in the Eclipse.

Community
  • 1
  • 1
Yoda
  • 17,363
  • 67
  • 204
  • 344

1 Answers1

0

You need to create a layout for the Activity you created.

  • Select res/layout
  • Right click, New > Other
  • Select Android XML Layout File, Next
  • The dialog will let you fill in some basics.
  • Go to the Activity class you made and put setContentView(R.layout.LAYOUT_FILE_NAME); in onCreate().
unholysampler
  • 17,141
  • 7
  • 47
  • 64