title: two linear layouts in the same screen
body: <p>hi im trying to design my app for both android phone and tablet. So i already had it designed but needed to redesign for scaling purposes for different screens.</p>
  <p><img src="https://i.stack.imgur.com/RHzIx.png" alt="enter image description here" /></p>
  <p>This is the layout im going for.</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/LinearLayout&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:orientation=&quot;vertical&quot;
      android:background=&quot;@color/white&quot;&gt;
    
      &lt;LinearLayout
          android:id=&quot;@+id/linearLayout1&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:weightSum=&quot;2&quot;
          android:orientation=&quot;horizontal&quot; &gt;
      
      &lt;fragment
          android:id=&quot;@+id/map&quot;
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_weight=&quot;.1&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          class=&quot;com.google.android.gms.maps.MapFragment&quot;
           /&gt;
    
      &lt;Button
          android:id=&quot;@+id/button3&quot;
          android:layout_weight=&quot;.25&quot;
          android:layout_marginLeft=&quot;34dp&quot;
          android:layout_marginTop=&quot;10dp&quot;
             android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:onClick=&quot;ClickTourismButton&quot;
          android:text=&quot;@string/Tourism&quot; /&gt;
      
      &lt;Button
          android:id=&quot;@+id/button4&quot;
          android:layout_weight=&quot;.25&quot;
             android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;34dp&quot;
          android:text=&quot;@string/Nearby&quot; /&gt;
      &lt;Button
          android:id=&quot;@+id/button2&quot;
          android:layout_weight=&quot;.25&quot;
          android:layout_marginLeft=&quot;34dp&quot;
             android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;@string/Favourites&quot; /&gt;
      &lt;Button
          android:id=&quot;@+id/button1&quot;
          android:layout_weight=&quot;.25&quot;
            android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;34dp&quot;  
          android:text=&quot;@string/Map&quot; /&gt;
           
      &lt;/LinearLayout&gt;   
      
      
      &lt;LinearLayout
          android:id=&quot;@+id/linearLayout2&quot;
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:weightSum=&quot;2&quot;
          android:orientation=&quot;horizontal&quot; &gt;
      &lt;TextView
         
          android:layout_marginLeft=&quot;10dp&quot;
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:textIsSelectable=&quot;true&quot;      
          android:id=&quot;@+id/feedupdate1&quot; /&gt;
      
      &lt;ListView
          android:id=&quot;@android:id/list&quot;
          android:background=&quot;@color/red&quot;
          android:layout_weight=&quot;1&quot;       
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;10dp&quot;/&gt;
      
      &lt;TextView
          android:id=&quot;@+id/empty&quot;
          android:textIsSelectable=&quot;true&quot;   
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;  
          android:layout_marginLeft=&quot;10dp&quot;
           android:layout_marginTop=&quot;5dp&quot;/&gt;
      &lt;TextView
          android:id=&quot;@+id/feedupdate&quot;        
          android:layout_marginLeft=&quot;6dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;430dp&quot;
          android:textIsSelectable=&quot;true&quot;/&gt;
      &lt;ListView
           
          android:id=&quot;@+id/list1&quot;
          android:background=&quot;@color/blue&quot;
          android:layout_weight=&quot;1&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;430dp&quot;
          android:layout_marginLeft=&quot;6dp&quot; /&gt; 
      
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>When i run the app the two linear layouts are on top of each other?? or the map fragment which is seen above as the black rectangle takes up all the screen??? Ive no idea what im doing wrong, ive looked through several tutorials and t seems right?</p>
  <p>Need assistance please</p>
  <p>thanks</p>
  <hr />
  <pre><code>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/LinearLayout&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:orientation=&quot;horizontal&quot;
      android:weightSum=&quot;2&quot;
      android:background=&quot;@color/white&quot;&gt;
  
      &lt;LinearLayout
          android:id=&quot;@+id/linearLayout1&quot;
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_weight=&quot;1&quot;
          android:orientation=&quot;vertical&quot; &gt;
  
      &lt;fragment
          android:id=&quot;@+id/map&quot;
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          class=&quot;com.google.android.gms.maps.MapFragment&quot;
           /&gt;
  
      &lt;Button
          android:id=&quot;@+id/button3&quot;
          android:layout_marginLeft=&quot;34dp&quot;
          android:layout_marginTop=&quot;10dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:onClick=&quot;ClickTourismButton&quot;
          android:text=&quot;@string/Tourism&quot; /&gt;
  
      &lt;Button
          android:id=&quot;@+id/button4&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;34dp&quot;
          android:text=&quot;@string/Nearby&quot; /&gt;
      &lt;Button
          android:id=&quot;@+id/button2&quot;
          android:layout_marginLeft=&quot;34dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;@string/Favourites&quot; /&gt;
      &lt;Button
          android:id=&quot;@+id/button1&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;0dp&quot;
          android:layout_marginLeft=&quot;34dp&quot;  
          android:text=&quot;@string/Map&quot; /&gt;
  
      &lt;/LinearLayout&gt;   
  
  
      &lt;LinearLayout
          android:id=&quot;@+id/linearLayout2&quot;
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_weight=&quot;1&quot;
          android:orientation=&quot;vertical&quot; &gt;
      &lt;TextView
  
          android:layout_marginLeft=&quot;10dp&quot;
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:textIsSelectable=&quot;true&quot;      
          android:id=&quot;@+id/feedupdate1&quot; /&gt;
  
      &lt;ListView
          android:id=&quot;@android:id/list&quot;
          android:background=&quot;@color/red&quot;    
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginLeft=&quot;10dp&quot;/&gt;
  
      &lt;TextView
          android:id=&quot;@+id/empty&quot;
          android:textIsSelectable=&quot;true&quot;   
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;  
          android:layout_marginLeft=&quot;10dp&quot;
           android:layout_marginTop=&quot;5dp&quot;/&gt;
      &lt;TextView
          android:id=&quot;@+id/feedupdate&quot;        
          android:layout_marginLeft=&quot;6dp&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;430dp&quot;
          android:textIsSelectable=&quot;true&quot;/&gt;
      &lt;ListView
  
          android:id=&quot;@+id/list1&quot;
          android:background=&quot;@color/blue&quot;
          android:layout_width=&quot;wrap_content&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;430dp&quot;
          android:layout_marginLeft=&quot;6dp&quot; /&gt; 
  
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><img src="https://i.stack.imgur.com/aqo19.png" alt="enter image description here" /></p>
  <p>one component takes up each side??
  its divided in two but the map fragment takes up all of one side and the first listview takes up all of the other???</p>