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

vue.js - Create hooks for automated testing -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

serial port - hub4com OVERRUN Error -