by
6,450 23
2
7
3,259
2
Top 1% !
Popular
Famous
Tagged
Specified
Refined
OpenSource
Popularity: 4028th place
Created
Modified Dec 17, 2014

Published on:

AndroidADT
InputName0view
InputType0View
LanguageJava
Languager
Languagexml
LicenseMIT_X11
MethodNameGoOtherLayout
OutputTypevoid

Select layout with button.click

Code do select other layout when click on button
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/210407/Select-layout-with-button-click?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
//Code for layout ... <Button ... android:onClick="GoOtherLayout" /> // put this line in the button wich you want to use it to select other layout //Code for for source public void GoOtherLayout(View view){ setContentView(R.layout.OtherLayout); //change OtherLayout for the layout's name to display }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus