title: Hard to work with multiple layouts in android xml
body: <p>Im trying to work with google android game sample, But the game has a single activity and single xml layout.</p>
  
  <p>The XML has many linearlayout, Each represents a screen in the game. For example, If i click the "Play" Button, The activity will disable all layouts for visibility and enable the "Play screen" layout for visibility.</p>
  
  <p>I cant seperate the main activity because its cause me many problems in my project (Sharing viarables with activities). So i think that i need to stay with one activity and one xml.</p>
  
  <p>The main problem is that in android studio i cant see the xml design.
  The bottom line I want to design my game easily with android studio and continue use my sample project.</p>
  
  <p>Any idea the make my life easier?</p>
  
  <p>Thanks a lot!</p>
  
  <p><a href="https://i.stack.imgur.com/37Mgw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/37Mgw.png" alt="enter image description here"></a>
  The xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;!-- SIGN-IN SCREEN --&gt;
      &lt;LinearLayout android:id="@+id/screen_sign_in" style="@style/LLScreen"&gt;
          &lt;TextView style="@style/GameTitle" /&gt;
          &lt;TextView style="@style/GameBlurb" /&gt;
  
          &lt;Button android:id="@+id/button_single_player"
              style="@style/MainScreenButton"
              android:text="@string/single_player" /&gt;
          &lt;com.google.android.gms.common.SignInButton android:id="@+id/button_sign_in"
              style="@style/SignInButton" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- MAIN SCREEN --&gt;
      &lt;LinearLayout android:id="@+id/screen_main" style="@style/LLScreen"&gt;
          &lt;TextView style="@style/GameTitle" /&gt;
          &lt;Button android:id="@+id/button_single_player_2"
              style="@style/MainScreenButton"
              android:text="@string/single_player" /&gt;
          &lt;TextView style="@style/MainScreenButtonBlurb"
              android:text="@string/single_player_explanation" /&gt;
          &lt;Button android:id="@+id/button_quick_game"
              style="@style/MainScreenButton"
              android:text="@string/quick_game" /&gt;
          &lt;TextView style="@style/MainScreenButtonBlurb"
              android:text="@string/quick_game_explanation" /&gt;
          &lt;Button android:id="@+id/button_invite_players"
              style="@style/MainScreenButton"
              android:text="@string/invite_players" /&gt;
          &lt;TextView style="@style/MainScreenButtonBlurb"
              android:text="@string/invite_players_explanation" /&gt;
          &lt;Button android:id="@+id/button_see_invitations"
              style="@style/MainScreenButton"
              android:text="@string/see_invitations" /&gt;
          &lt;TextView style="@style/MainScreenButtonBlurb"
              android:text="@string/see_invitations_explanation" /&gt;
          &lt;Button android:id="@+id/button_sign_out"
              style="@style/SignOutButton"
              android:text="@string/sign_out" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- INVITATION POPUP --&gt;
      &lt;LinearLayout android:id="@+id/invitation_popup" style="@style/InvPopup"&gt;
          &lt;TextView android:id="@+id/incoming_invitation_text" style="@style/InvPopupText" /&gt;
          &lt;Button android:id="@+id/button_accept_popup_invitation"
              style="@style/InvPopupButton"
              android:text="@string/accept_popup_invite" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- "PLEASE WAIT" SCREEN --&gt;
      &lt;LinearLayout android:id="@+id/screen_wait" style="@style/LLScreen"&gt;
          &lt;TextView style="@style/Blurb" android:text="@string/please_wait" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- GAMEPLAY SCREEN --&gt;
      &lt;LinearLayout android:id="@+id/screen_game" style="@style/LLScreen"&gt;
          &lt;TextView android:id="@+id/instructions"
              style="@style/Instructions" android:text="@string/instructions" /&gt;
          &lt;TextView android:id="@+id/my_score" style="@style/ScoreDisplay" /&gt;
          &lt;Button android:id="@+id/button_click_me"
                  style="@style/GameButton"
                  android:text="@string/click_me"
                  android:layout_marginBottom="20dp" /&gt;
          &lt;TextView android:id="@+id/countdown" style="@style/FigureLabel" /&gt;
  
          &lt;LinearLayout style="@style/ScoresBox"&gt;
              &lt;TextView android:id="@+id/score0" style="@style/ScoreText" /&gt;
              &lt;TextView android:id="@+id/score1" style="@style/ScoreText" /&gt;
              &lt;TextView android:id="@+id/score2" style="@style/ScoreText" /&gt;
              &lt;TextView android:id="@+id/score3" style="@style/ScoreText" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>EDIT-</strong> I solved the problem, I just needed to add   <code>android:visibility="visible"</code> to the layout. Thanks.</p>