blob: 47411bbc2953532e6a1b6063d7a58339e3972e0d [file] [log] [blame]
Emeric Vigier05e894e2012-08-20 13:53:02 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
4
5Author: Adrien Beraud <adrien.beraud@gmail.com>
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21Additional permission under GNU GPL version 3 section 7:
22
23If you modify this program, or any covered work, by linking or
24combining it with the OpenSSL project's OpenSSL library (or a
25modified version of that library), containing parts covered by the
26terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27grants you additional permission to convey the resulting work.
28Corresponding Source for a non-source form of such a combination
29shall include the source code for the parts of OpenSSL used as well
30as that of the covered work.
31 -->
32<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
33 xmlns:tools="http://schemas.android.com/tools"
34 android:layout_width="match_parent"
35 android:layout_height="match_parent"
36 android:orientation="vertical"
37 android:paddingLeft="8dp"
38 android:paddingRight="8dp" >
39
40 <Button
41 android:id="@+id/buttonInit"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:layout_alignParentTop="true"
45 android:onClick="onClick"
46 android:text="init" />
Emeric Vigierd5c17f52012-08-29 09:29:33 -040047
48 <TextView
49 android:id="@+id/textAccountID"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_alignParentLeft="true"
Emeric Vigier39a11fa2012-08-29 15:25:09 -040053 android:layout_alignBottom="@+id/editAccountID"
54 android:gravity="center_vertical"
Emeric Vigierd5c17f52012-08-29 09:29:33 -040055 android:layout_below="@+id/buttonInit"
56 android:text="AccountID"
57 android:ems="10" />
58
Emeric Vigier39a11fa2012-08-29 15:25:09 -040059 <TextView
Emeric Vigierd5c17f52012-08-29 09:29:33 -040060 android:id="@+id/editAccountID"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_alignParentRight="true"
64 android:layout_toRightOf="@+id/textAccountID"
65 android:layout_below="@+id/buttonInit"
Emeric Vigier39a11fa2012-08-29 15:25:09 -040066 android:text="IP2IP"
Emeric Vigierd5c17f52012-08-29 09:29:33 -040067 android:ems="10" />
Emeric Vigier39a11fa2012-08-29 15:25:09 -040068
Emeric Vigierd5c17f52012-08-29 09:29:33 -040069 <TextView
70 android:id="@+id/textTo"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_alignParentLeft="true"
Emeric Vigier39a11fa2012-08-29 15:25:09 -040074 android:layout_alignBottom="@+id/editTo"
75 android:gravity="center_vertical"
76 android:layout_below="@+id/editAccountID"
77 android:text="to IP address"
Emeric Vigierd5c17f52012-08-29 09:29:33 -040078 android:ems="10" />
79
80 <EditText
81 android:id="@+id/editTo"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_alignParentRight="true"
85 android:layout_toRightOf="@+id/textTo"
Emeric Vigier39a11fa2012-08-29 15:25:09 -040086 android:layout_below="@+id/editAccountID"
Emeric Vigierd5c17f52012-08-29 09:29:33 -040087 android:ems="10" />
88
Emeric Vigiere89b48b2012-08-30 14:16:46 -040089 <LinearLayout
90 android:layout_height="wrap_content"
91 android:layout_width="match_parent"
92 android:gravity = "center_horizontal"
93 android:layout_below="@+id/editTo"
94 android:id="@+id/callButtonLayout"
95 android:weightSum="1.0">
96 <ImageButton
Emeric Vigierd5c17f52012-08-29 09:29:33 -040097 android:id="@+id/buttonCall"
Emeric Vigiere89b48b2012-08-30 14:16:46 -040098 android:layout_width="0dp"
Emeric Vigierd5c17f52012-08-29 09:29:33 -040099 android:layout_height="wrap_content"
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400100 android:gravity="center_vertical"
101 android:layout_weight=".5"
Emeric Vigierd5c17f52012-08-29 09:29:33 -0400102 android:onClick="onClick"
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400103 android:src="@drawable/ic_call"
104 android:background="@drawable/call_button" />
Emeric Vigier78a53e92012-08-29 18:15:34 -0400105
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400106 <ImageButton
Emeric Vigier78a53e92012-08-29 18:15:34 -0400107 android:id="@+id/buttonHangUp"
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400108 android:layout_width="0dp"
109 android:layout_height="match_parent"
110 android:layout_weight="0.50"
111 android:background="@drawable/hangup_button"
112 android:gravity="center_vertical"
Emeric Vigier78a53e92012-08-29 18:15:34 -0400113 android:onClick="onClick"
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400114 android:src="@drawable/ic_hangup" />
115
116 </LinearLayout>
Emeric Vigier05e894e2012-08-20 13:53:02 -0400117
Emeric Vigier78a53e92012-08-29 18:15:34 -0400118<!-- android:background="@drawable/custom_button" -->
119
Emeric Vigier62ca14d2012-08-24 11:05:09 -0400120 <TextView
121 android:id="@+id/callVoid_text"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
Emeric Vigiere89b48b2012-08-30 14:16:46 -0400124 android:layout_below="@+id/callButtonLayout"
Emeric Vigier62ca14d2012-08-24 11:05:09 -0400125 android:text="callVoidText" />
126
127 <Button
128 android:id="@+id/buttonCallVoid"
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
131 android:layout_below="@+id/callVoid_text"
132 android:onClick="onClick"
133 android:text="CallVoid" />
134
135 <TextView
136 android:id="@+id/NewData_text"
137 android:layout_width="match_parent"
138 android:layout_height="wrap_content"
139 android:layout_below="@+id/buttonCallVoid"
140 android:layout_centerHorizontal="true"
141 android:text="getNewDataText" />
142
143 <Button
144 android:id="@+id/buttonGetNewData"
145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
147 android:layout_below="@+id/NewData_text"
148 android:onClick="onClick"
149 android:text="GetNewData" />
150
151 <TextView
152 android:id="@+id/DataString_text"
153 android:layout_width="match_parent"
154 android:layout_height="wrap_content"
155 android:layout_below="@+id/buttonGetNewData"
156 android:layout_centerHorizontal="true"
157 android:text="callbackString" />
158
159 <Button
160 android:id="@+id/buttonGetDataString"
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:layout_below="@+id/DataString_text"
164 android:onClick="onClick"
165 android:text="GetDataString" />
166
Emeric Vigier05e894e2012-08-20 13:53:02 -0400167</RelativeLayout>