comparison app/src/main/res/layout/dia_portforward.xml @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents res/layout/dia_portforward.xml@0ce5cc452d02
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 * ConnectBot: simple, powerful, open-source SSH client for Android
5 * Copyright 2007 Kenny Root, Jeffrey Sharkey
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19 -->
20
21 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_height="fill_parent"
23 android:layout_width="fill_parent"
24 android:scrollbars="vertical"
25 >
26
27 <TableLayout
28 android:layout_width="fill_parent"
29 android:layout_height="wrap_content"
30 android:paddingLeft="10dip"
31 android:paddingRight="10dip"
32 >
33
34 <TableRow>
35 <TextView
36 android:text="@string/prompt_nickname"
37 android:paddingRight="10dip"
38 android:gravity="right|center_vertical"
39 android:textAppearance="?android:attr/textAppearanceMedium"
40 />
41
42 <EditText
43 android:id="@+id/nickname"
44 android:hint="Internal Webserver"
45 android:layout_width="fill_parent"
46 android:layout_height="wrap_content"
47 android:singleLine="true"
48 android:layout_weight="1"
49 />
50 </TableRow>
51
52 <TableRow>
53 <TextView
54 android:text="@string/prompt_type"
55 android:paddingRight="10dip"
56 android:gravity="right|center_vertical"
57 android:textAppearance="?android:attr/textAppearanceMedium"
58 />
59
60 <Spinner android:id="@+id/portforward_type"
61 android:layout_width="fill_parent"
62 android:layout_height="wrap_content"
63 android:entries="@array/list_portforward_types"
64 android:prompt="@string/prompt_type"
65 android:layout_weight="1"
66 />
67 </TableRow>
68
69 <TableRow>
70 <TextView
71 android:text="@string/prompt_source_port"
72 android:paddingRight="10dip"
73 android:gravity="right|center_vertical"
74 android:textAppearance="?android:attr/textAppearanceMedium"
75 />
76
77 <EditText
78 android:id="@+id/portforward_source"
79 android:hint="8080"
80 android:layout_width="fill_parent"
81 android:layout_height="wrap_content"
82 android:layout_weight="1"
83 android:inputType="number"
84 />
85 </TableRow>
86
87 <TableRow>
88 <TextView
89 android:text="@string/prompt_destination"
90 android:paddingRight="10dip"
91 android:gravity="right|center_vertical"
92 android:textAppearance="?android:attr/textAppearanceMedium"
93 />
94
95 <EditText
96 android:id="@+id/portforward_destination"
97 android:hint="localhost:80"
98 android:layout_width="fill_parent"
99 android:layout_height="wrap_content"
100 android:layout_weight="1"
101 android:inputType="textEmailAddress"
102 />
103 </TableRow>
104 </TableLayout>
105 </ScrollView>