summaryrefslogtreecommitdiff
path: root/src/ui/android/res/layout/activity_main.xml
blob: b77fe58570ebaf683c8b23303f404970e1de7d11 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match_parent"
    android:layout_width="match_parent">

    <RelativeLayout
		android:layout_height="match_parent"
		android:layout_width="match_parent">
	
	    <RelativeLayout
	       	android:id="@+id/top_bg"
			android:layout_height="wrap_content"
			android:layout_width="match_parent"
			android:layout_alignParentTop="true"
			android:layout_alignParentLeft="true"
			android:layout_alignParentRight="true"
			android:padding="8dp"
			android:background="#C0C0C0">
	
	        <ImageView
				android:id="@+id/start_stop"
				android:layout_height="wrap_content"
				android:layout_width="wrap_content"
				android:layout_alignTop="@+id/source_language"
				android:layout_alignBottom="@+id/target_language"
				android:layout_alignParentRight="true"
				android:padding="8dp"
				android:src="@drawable/ic_mic"
				android:contentDescription="@string/microphone"/>
	
	        <ImageView
				android:id="@+id/switch_languages"
				android:layout_height="wrap_content"
				android:layout_width="wrap_content"
				android:layout_alignTop="@+id/source_language"
				android:layout_alignBottom="@+id/target_language"
				android:layout_toLeftOf="@id/start_stop"
				android:padding="8dp"
				android:src="@drawable/ic_action_switch"
				android:contentDescription="@string/switch_languages"/>
	
			<org.grammaticalframework.ui.android.LanguageSelector
				android:id="@+id/source_language"
				android:layout_height="wrap_content"
				android:layout_width="match_parent"
				android:layout_alignParentLeft="true"
				android:layout_alignParentTop="true"
				android:layout_toLeftOf="@id/switch_languages"
				android:padding="0dp"/>
	
			<org.grammaticalframework.ui.android.LanguageSelector
				android:id="@+id/target_language"
				android:layout_height="wrap_content"
				android:layout_width="match_parent"
				android:layout_below="@id/source_language"
				android:layout_toLeftOf="@id/switch_languages"
				android:padding="0dp"/>
		</RelativeLayout>
	
		<org.grammaticalframework.ui.android.ConversationView
			android:id="@+id/conversation"
			android:layout_height="match_parent"
			android:layout_width="match_parent"
			android:layout_alignParentLeft="true"
			android:layout_alignParentBottom="true"
			android:layout_alignParentRight="true"
			android:layout_below="@id/top_bg">
			
			<LinearLayout
				android:id="@+id/conversation_content"
				android:layout_height="wrap_content"
				android:layout_width="match_parent"
				android:orientation="vertical"
				android:padding="16dp"/>
		</org.grammaticalframework.ui.android.ConversationView>
	</RelativeLayout>
	
	<LinearLayout
		android:id="@+id/progressBarView" 
		android:gravity="center"
		android:visibility="gone"
		android:background="#00000000"
		android:layout_height="match_parent"
		android:layout_width="match_parent">
		
		<ProgressBar
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"/>	
	</LinearLayout>
</FrameLayout>