Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: None  |  size: 3.53 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.                                 android:layout_width="fill_parent"
  4.                                 android:layout_height="fill_parent"
  5.                                 android:background="@color/gallery_background"
  6.                
  7.                                 >
  8.         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9.         android:layout_width="fill_parent"
  10.         android:layout_height="wrap_content"
  11.         android:orientation="horizontal"
  12.         android:layout_alignParentTop="true"
  13.         android:id="@+id/header"
  14.     >
  15.  
  16.     </LinearLayout>
  17.      
  18.  
  19.      
  20.  
  21.    
  22.         <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  23.             android:orientation="vertical"
  24.             android:background="@color/gallery_background"
  25.             android:layout_height="wrap_content"
  26.             android:layout_width="wrap_content"
  27.             android:layout_alignParentBottom="true"
  28.             android:id="@+id/footer"
  29.             >
  30.            
  31.                
  32.                         <TextView android:id="@+id/lblCategory"
  33.                                         android:text="@string/lblCategory"
  34.                                         android:singleLine="true"
  35.                                         android:layout_width="fill_parent"
  36.                                         android:layout_height="wrap_content"
  37.                                                                  
  38.                                 />
  39.                                
  40.                         <Spinner android:layout_width="fill_parent"
  41.                                                 android:layout_height="wrap_content"
  42.                                                 android:id="@+id/txtCategory"
  43.                                                 android:layout_below="@+id/lblCategory"/>
  44.                                
  45.                         <TextView android:id="@+id/lblNote"
  46.                                 android:text="@string/lblNote"
  47.                                 android:singleLine="true"
  48.                                 android:layout_width="fill_parent"
  49.                                 android:layout_height="wrap_content"
  50.                                 android:layout_below="@+id/txtCategory"
  51.                                  
  52.                         />
  53.                         <EditText android:id="@+id/txtNote"
  54.                                 android:singleLine="false"
  55.                                 android:layout_width="fill_parent"
  56.                                 android:layout_height="wrap_content"
  57.                                 android:layout_below="@+id/lblNote"
  58.                                 android:imeOptions="actionNext"
  59.                                  
  60.                         />
  61.                
  62.        
  63.                     <Button android:id="@+id/btnTake"
  64.                                 android:layout_height="wrap_content"
  65.                                 android:layout_below="@+id/txtNote"
  66.                                 android:text="@string/btnTake"
  67.                                 android:layout_width="wrap_content"
  68.                                 />
  69.                    
  70.                     <Button android:id="@+id/btnAttach"
  71.                                 android:layout_height="wrap_content"
  72.                                 android:layout_below="@+id/txtNote"
  73.                                 android:layout_toRightOf="@id/btnTake"
  74.                                 android:text="@string/btnAttach"
  75.                                 android:layout_width="wrap_content"
  76.                                 />
  77.                  
  78.                                  
  79.                         <Button android:id="@+id/btnNext"
  80.                                
  81.                                 android:layout_width="wrap_content"
  82.                                 android:layout_below="@+id/txtNote"
  83.                                 android:layout_toRightOf="@id/btnAttach"
  84.                                 android:text="@string/btnNext"
  85.                                 android:layout_height="wrap_content"/>
  86.                
  87.                         <Button android:id="@+id/btnExit"
  88.                                 android:layout_height="wrap_content"
  89.                                 android:layout_width="wrap_content"
  90.                                 android:layout_below="@+id/txtNote"
  91.                                 android:layout_toRightOf="@id/btnNext"
  92.                                 android:text="@string/btnExit"
  93.                                 />       
  94.        
  95.                  
  96.             <ImageView android:id="@+id/gallery_image"
  97.                        android:layout_width="@dimen/gps_width"
  98.                        android:layout_height="@dimen/gps_height"
  99.                        android:src="@drawable/gps_not_connected"
  100.                        android:layout_below="@+id/txtNote"
  101.                                         android:layout_toRightOf="@id/btnExit"
  102.                        android:contentDescription="@string/gallery_gps"
  103.                        android:layout_alignParentRight="true"
  104.                        />
  105.          
  106.          
  107.         </RelativeLayout>
  108.  
  109.  
  110.                 <Gallery
  111.                 android:id="@+id/photoGallery"
  112.                 android:layout_width="fill_parent"
  113.                 android:layout_height="wrap_content"
  114.                 android:background="@color/gallery_background"
  115.                 android:layout_above="@id/footer"
  116.         android:layout_below="@id/header"                      
  117.                
  118.                  />
  119.  
  120. </RelativeLayout>