android - Same JAVA file for two layouts (XML) in Andorid Studio -


i have 2 layouts application have written logic in mainactivity.java

i want use mainactivity.java other layout(xml) file also

how can ?

this mainactivity.xml (layout file)

this main layout file

now want blue button on right resize new layout that

new xml (with no java file) layout file

this layout file

now want use same java file (mainactivity.java) new layout file


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -