Advertisement
GeeksOnHugs

Linear Layout With Embeded Linear Layout

May 19th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.52 KB | None | 0 0
  1. <!--two files.  
  2.  
  3. The first file does not work.  The Check Boxes in an embeded linear layout is below the mapview.  It only shows map view.  
  4.  
  5. The second file works.  The Check Boxes in an embeded linear layout is ABOVE the mapview.-->
  6.  
  7. <!-- FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE FILE ONE-->
  8.  
  9. <?xml version="1.0" encoding="utf-8"?>
  10.  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11.    android:layout_width="fill_parent"
  12.    android:layout_height="fill_parent"
  13.    android:orientation="vertical"
  14.    android:background="#A971E5" >
  15.  
  16.    
  17.     <com.google.android.maps.MapView
  18.        android:id="@+id/mapWhenImClose"    
  19.        android:layout_width="fill_parent"
  20.        android:layout_height="fill_parent"
  21.        android:clickable="true"
  22.        android:apiKey="0MbR34udiEJdnkplC1F7rK4ZxbSFzdRagCruFDA"/>
  23.         <!--  had this line but it said depreciated        
  24.        android:enabled="true" -->
  25.    
  26.     <LinearLayout
  27.        android:layout_width="fill_parent"
  28.        android:layout_height="wrap_content"
  29.        android:orientation="horizontal">
  30.        
  31.         <CheckBox
  32.            android:id="@+id/chkShowStreetView"
  33.            android:layout_width="wrap_content"
  34.            android:layout_height="wrap_content"
  35.            android:text="@string/strShowStreetView" />
  36.        
  37.         <CheckBox
  38.            android:id="@+id/chkShowSatelliteView"
  39.            android:layout_width="wrap_content"
  40.            android:layout_height="wrap_content"
  41.            android:text="@string/strShowSatelliteView" />
  42.  
  43.     </LinearLayout>
  44.    
  45.  
  46.  
  47. </LinearLayout>
  48.  
  49.  
  50. <!--File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two File Two-->
  51.  
  52.  
  53. <?xml version="1.0" encoding="utf-8"?>
  54.  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  55.    android:layout_width="fill_parent"
  56.    android:layout_height="fill_parent"
  57.    android:orientation="vertical"
  58.    android:background="#A971E5" >
  59.  
  60.        
  61.     <LinearLayout
  62.        android:layout_width="fill_parent"
  63.        android:layout_height="wrap_content"
  64.        android:orientation="horizontal">
  65.        
  66.         <CheckBox
  67.            android:id="@+id/chkShowStreetView"
  68.            android:layout_width="wrap_content"
  69.            android:layout_height="wrap_content"
  70.            android:text="@string/strShowStreetView" />
  71.        
  72.         <CheckBox
  73.            android:id="@+id/chkShowSatelliteView"
  74.            android:layout_width="wrap_content"
  75.            android:layout_height="wrap_content"
  76.            android:text="@string/strShowSatelliteView" />
  77.  
  78.     </LinearLayout>
  79.    
  80.  
  81.     <com.google.android.maps.MapView
  82.        android:id="@+id/mapWhenImClose"    
  83.        android:layout_width="fill_parent"
  84.        android:layout_height="fill_parent"
  85.        android:clickable="true"
  86.        android:apiKey="0MbR34udiEJdnkplC1F7rK4ZxbSFzdRagCruFDA"/>
  87.         <!--  had this line but it said depreciated        
  88.        android:enabled="true" -->
  89.    
  90. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement