Saturday, 15 September 2012

How to have a button only for large devices on Android? -


I know that you can separate the layout folders like layouts - large Or layout - xlarge . However, I do not have to update two different files, every time I make changes to my app interface.

Is there a button on which only visibility = "gone" on the small screen and general visibility on the big screen?

I separated the button into 2 xml files - in a layout-large Include a visibility = "gone" in visibility = "visible" and layout , and then a button in my layout / home.xml file . It worked.

No comments:

Post a Comment