merge - Android include layout in portrait and landscape -


I have an activity for the layout and landscape for the picture, each of them contains different balloon.xml

  1. Works fine for all pictures.
  2. For the scenario - after testing, I found that the systems included in my image include :( and all layouts

    some sample code: I have two main There are Xml files - in 'Layouts' and in 'Layout-Land' folders.

    Main Landscape and Portrait /
      & lt; Relative layout ...... . & Lt; layout = "@ layout / balloon" /> gt; & lt; / relative layout & gt; / code>  

    and landscape and portrait /

    How to bind to the right

    You should actually have the name of both layouts with the same name < P> Layout-land / sand.xml and L layout / balloon.exml **

    The system automatically finds a wchich to show .

Comments