PageRenderTime 83ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/TheElements/res/layout/ui.xml

http://thelements.googlecode.com/
XML | 107 lines | 82 code | 14 blank | 11 comment | 0 complexity | c149c0871c572cf4165d8ce7c3a5f575 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3    android:orientation="vertical"
  4    android:layout_width="fill_parent"
  5    android:layout_height="fill_parent" >
  6    
  7    <!-- Top Menu Bar (Basically moves all menu items here)-->
  8	<sand.falling.opengl.MenuBar
  9		android:id="@+id/menu_bar"
 10		android:layout_width="fill_parent"
 11		android:layout_height="45dip"
 12		android:layout_weight="0" 
 13		android:background="@drawable/bg_ui_menubar" 
 14		android:paddingTop="2dip">
 15    	
 16    	<!-- Eraser button -->
 17    	<ImageButton 
 18    		android:id="@+id/eraser_button"
 19    		android:layout_height="42dip"
 20    		android:layout_width="42dip" 
 21    		android:layout_marginRight="4dip"
 22    		android:background="@drawable/btn_mb"/>
 23    		
 24    	<!-- Play/Pause button -->
 25    	<ImageButton
 26    		android:id="@+id/play_pause_button"
 27    		android:layout_height="42dip"
 28    		android:layout_width="42dip"
 29    		android:layout_marginRight="4dip"
 30    		android:gravity="center" 
 31    		android:background="@drawable/btn_mb"/>
 32    	
 33    	<!-- Save button -->
 34    	<ImageButton
 35    		android:id="@+id/save_button"
 36    		android:src="@+drawable/save"
 37    		android:layout_height="42dip"
 38    		android:layout_width="42dip"
 39    		android:layout_marginRight="4dip"
 40    		android:background="@drawable/btn_mb"/>
 41    		
 42    	<!-- Load button -->
 43    	<ImageButton
 44    		android:id="@+id/load_button"
 45    		android:src="@+drawable/load"
 46    		android:layout_height="42dip"
 47    		android:layout_width="42dip"
 48    		android:layout_marginRight="4dip"
 49    		android:background="@drawable/btn_mb" />
 50    		
 51    	<!-- Load demo button -->
 52    	<ImageButton
 53    		android:id="@+id/load_demo_button"
 54    		android:src="@+drawable/load_demo"
 55    		android:layout_height="42dip"
 56    		android:layout_width="42dip" 
 57    		android:layout_marginRight="4dip"
 58    		android:background="@drawable/btn_mb"/>
 59    		
 60    	<!-- Exit button -->
 61    	<ImageButton
 62    		android:id="@+id/exit_button"
 63    		android:src="@+drawable/exit"
 64    		android:layout_height="42dip"
 65    		android:layout_width="78dip"
 66    		android:background="@drawable/btn_mb"/>
 67    	
 68	</sand.falling.opengl.MenuBar>
 69    
 70	<!-- Main viewing section -->
 71	<sand.falling.opengl.SandView
 72		android:id="@+id/sand_view"
 73		android:gravity="center"
 74		android:layout_weight="1"
 75		android:layout_width="fill_parent" 
 76		android:layout_height="fill_parent" />
 77
 78	<!-- Control area (on the bottom) with a slider for brush size and button for element picker -->
 79	<sand.falling.opengl.Control
 80		android:id="@+id/control"
 81		android:background="@drawable/bg_ui_control"
 82		android:layout_width="fill_parent"
 83		android:layout_height="46dip"
 84		android:layout_weight="0"
 85		android:paddingRight="3dip">
 86			
 87		<!-- Element Picker Button -->
 88		<ImageButton
 89			android:id="@+id/element_picker_button"
 90			android:background="@drawable/btn_ui_element"
 91			android:layout_width="42dip"
 92			android:layout_margin="3dip"
 93			android:layout_gravity="center"
 94			android:layout_height="42dip" />
 95		
 96		<!-- Brush Size Seekbar -->
 97		<SeekBar
 98			android:id="@+id/brush_size_slider"
 99			android:layout_gravity="center"
100			android:layout_weight="1"
101			android:progressDrawable="@drawable/bg_ui_progress"
102			android:layout_height="wrap_content"
103			android:layout_width="wrap_content" />
104			
105	</sand.falling.opengl.Control>
106	
107</LinearLayout>