Reputation: 10672
I am new to android, is there any way to change this startup layout. actually application is already developed and later I implemented login layout for this, now how can I change startup layout to login layout?
Thanks
Upvotes: 0
Views: 3781
Reputation: 1066
Change your AndroidManifest.xml and add to the activity you want to start this:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Of course, change the LAUNCHER category to DEFAULT in the activity that actually is launching on start.
Hope it help :)
Upvotes: 2
Reputation: 63303
Any layout can be applied to any Activity by passing it to setContentView()
. Somewhere in the Activity you want to change, the line setContentView(R.layout.main)
exists; you need to change this to point to whatever other XML layout file you wish to use.
HTH
Upvotes: 1