elicitation_image.xml 6.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >
    
	<RelativeLayout
	    android:layout_width="match_parent"
	    android:layout_height="fill_parent"
	    android:gravity="center_horizontal"
	    android:orientation="vertical"
	    android:paddingBottom="@dimen/activity_vertical_margin"
	    android:paddingLeft="@dimen/activity_horizontal_margin"
	    android:paddingRight="@dimen/activity_horizontal_margin">
	    	
	    <!-- Back button -->
	    <GridLayout
	       	android:layout_width="wrap_content"
			android:layout_height="wrap_content" 
			android:layout_gravity="left">
			<Button
				android:id="@+id/btn_goBack"
				android:layout_width="wrap_content"
				android:layout_height="match_parent"
				android:drawableLeft="@drawable/ic_undo_black_24dp"
				android:onClick="onButtonBackPressed"
				android:text="@string/goBack"
				android:textColor="#D32F2F"
				android:layout_marginBottom="20dp" 
				android:layout_marginTop="20dp" />
		</GridLayout>
		
	    <TableLayout
			    android:layout_width="fill_parent"
		    	android:layout_height="wrap_content" 
		    	android:id="@+id/tableLayoutTitleActivityElicitationIMG"> 
		    
			    <TextView
			        style="@style/MainTitle" 
		            android:layout_width="wrap_content"
		            android:layout_height="wrap_content"
		            android:text="Elicitation mode"
		            android:layout_marginBottom="20dp"/>
			    <View
			       android:layout_width="match_parent"
			       android:layout_height="0.2dp"
			       android:id="@+id/separator"
			       android:visibility="visible"
			       android:background="@android:color/darker_gray"
			       android:layout_marginBottom="50dp"/> 
			       
			    <TextView
		        android:id="@+id/maintextView2"
		        style="@style/SecondTitle"
		        android:layout_width="wrap_content"
		        android:layout_height="wrap_content"
		        android:text="Please, read the bold line."
		        android:layout_marginBottom="25dp" />
		</TableLayout>
		
	    <LinearLayout
	        android:layout_width="match_parent"
	        android:layout_height="wrap_content" 
	        android:layout_below="@+id/tableLayoutTitleActivityElicitationIMG"
	        android:id="@+id/linearLayoutTopActivityElicitationIMG">
	        
	        <TextView
	            android:id="@+id/image_x"
	            android:layout_width="wrap_content"
	            android:layout_height="wrap_content"
	            android:text="TextView"
	            android:textSize="20sp"
	            android:typeface="serif" />
	
	        <View
	            android:id="@+id/view1"
	            android:layout_width="0.2dp"
	            android:layout_height="40dp"
			    android:visibility="visible"
			    android:background="@android:color/darker_gray"
			    android:layout_marginLeft="10dp"
			    android:layout_marginRight="10dp" />
	
	        <fragment
	            android:id="@+id/phrase_player"
	            android:name="org.lp20.aikuma.ui.ListenFragment"
	            android:layout_width="wrap_content"
	            android:layout_height="match_parent" />
	    </LinearLayout>
	

	    <ImageView
	        android:layout_below="@+id/linearLayoutTopActivityElicitationIMG"
	        android:id="@+id/img_orig"
	        android:layout_width="800px"
	        android:layout_height="450px"
	        android:paddingBottom="10dp"
    	 />
	    
	    <RelativeLayout
	        android:layout_width="match_parent"
	        android:layout_height="wrap_content"
	        android:id="@+id/relativeTowBottomsElicitIMG"
	        android:layout_below="@+id/linearLayoutTopActivityElicitationIMG"
	        android:layout_toRightOf="@+id/img_orig">
	        
			<LinearLayout 	        
			    android:layout_width="match_parent"
	        	android:layout_height="match_parent"
	      		android:orientation="horizontal"
	      		android:id="@+id/linearTowBottomsElicitIMG">
		        <ImageButton
		            android:id="@+id/btn_record_elicit"
		            android:layout_width="fill_parent"
		            android:layout_height="match_parent"
		            android:layout_weight="3"
		            android:onClick="onRecordClick"
		            android:src="@drawable/record" />
		
		        <ImageButton
		            android:id="@+id/btn_next"
		            android:layout_toRightOf="@+id/btn_record_elicit"
		            android:layout_width="fill_parent"
		            android:layout_height="match_parent"
		            android:layout_weight="3"
		            android:onClick="onNextClick"
		            android:src="@drawable/arrow_circle_o_right" />
	        </LinearLayout>

       	    <ImageButton
		        android:id="@+id/btn_validate"
		        android:layout_width="match_parent"
		        android:layout_height="match_parent"
		        android:layout_weight="2"
		        android:onClick="onValidate"
		        android:layout_below="@+id/linearTowBottomsElicitIMG"
		        android:src="@drawable/ok_32" />
	    </RelativeLayout>
	

	
           <LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="wrap_content"
               android:orientation="horizontal" 
               android:layout_alignParentBottom="true"
               android:layout_below="@+id/img_orig">
               
               <TextView
                   android:id="@+id/elicit_phrase_number"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:text="1" 
                   />
        
               <TextView
                   android:id="@+id/elicit_total_number"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:text=" / " />               
               
               <view class="org.lp20.aikuma.ui.InterleavedSeekBar"
                       style="@android:style/Widget.ProgressBar.Horizontal"
                       android:id="@+id/seek_elicit_progression"
                       android:layout_width="fill_parent"
                       android:layout_height="wrap_content"
                       android:maxHeight="3dp"
                       />
              </LinearLayout>
	    
	

	</RelativeLayout>
</ScrollView>