Thread Deleted

[q]How to get the present layout of an activity

Prev Previous Post   Next Post Next
26th February 2014, 08:03 AM   |  #1  
arpitkh96's Avatar
OP Senior Member
Flag panipat
Thanks Meter: 384
 
1,096 posts
Join Date:Joined: Feb 2012
More
I have used a command in an onclicklistener of button to change the layout without creating a new activity like this
setContentView(R.layout.myxml);

Now to i want to override onBackPressed so that
if layout is a changed one,it will first go to default layout ,then exit the app.
But how can i identify that which layout is currently set on the activity

Sent from my GT-S5570 using XDA Premium 4 mobile app
Last edited by arpitkh96; 26th February 2014 at 09:13 AM.
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Java for Android App Development by ThreadRank