Place the tablet layouts in res/layout-large/ . Put your phone layouts in res/layout/ . Call them the same. Your actions will load the correct ones based on the device on which they work. When you call findViewById() to get additional buttons and see that you are returning null back, ignore them.
You may need additional layouts in places such as res/layout-large-land/ (landscape for tablets), res/layout-xlarge/ (if you want to handle 10+ "tablets differently than material in the range 5-9") , res/layout-small/ (if you want to handle <3 "screens), etc.
source share