diff options
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/act_colors.xml | 70 | ||||
-rw-r--r-- | app/src/main/res/layout/act_console.xml | 164 | ||||
-rw-r--r-- | app/src/main/res/layout/act_generatepubkey.xml | 185 | ||||
-rw-r--r-- | app/src/main/res/layout/act_help.xml | 56 | ||||
-rw-r--r-- | app/src/main/res/layout/act_help_topic.xml | 33 | ||||
-rw-r--r-- | app/src/main/res/layout/act_hostlist.xml | 75 | ||||
-rw-r--r-- | app/src/main/res/layout/act_portforwardlist.xml | 40 | ||||
-rw-r--r-- | app/src/main/res/layout/act_pubkeylist.xml | 40 | ||||
-rw-r--r-- | app/src/main/res/layout/act_wizard.xml | 62 | ||||
-rw-r--r-- | app/src/main/res/layout/dia_changepassword.xml | 99 | ||||
-rw-r--r-- | app/src/main/res/layout/dia_gatherentropy.xml | 44 | ||||
-rw-r--r-- | app/src/main/res/layout/dia_password.xml | 38 | ||||
-rw-r--r-- | app/src/main/res/layout/dia_portforward.xml | 105 | ||||
-rw-r--r-- | app/src/main/res/layout/dia_resize.xml | 55 | ||||
-rw-r--r-- | app/src/main/res/layout/item_portforward.xml | 48 | ||||
-rw-r--r-- | app/src/main/res/layout/item_pubkey.xml | 54 | ||||
-rw-r--r-- | app/src/main/res/layout/item_terminal.xml | 37 | ||||
-rw-r--r-- | app/src/main/res/layout/wiz_eula.xml | 96 |
18 files changed, 1301 insertions, 0 deletions
diff --git a/app/src/main/res/layout/act_colors.xml b/app/src/main/res/layout/act_colors.xml new file mode 100644 index 0000000..3bda649 --- /dev/null +++ b/app/src/main/res/layout/act_colors.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/spinners"> + + <Spinner + android:id="@+id/fg" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:minHeight="60dp" + android:layout_weight="1" + android:gravity="center" + /> + + <Spinner + android:id="@+id/bg" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignTop="@id/fg" + android:layout_alignParentRight="true" + android:layout_toRightOf="@id/fg" + android:minHeight="60dp" + android:layout_weight="1" + android:gravity="center" + /> + </LinearLayout> + + <GridView + android:id="@+id/color_grid" + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:padding="10dp" + android:verticalSpacing="10dp" + android:horizontalSpacing="10dp" + android:numColumns="auto_fit" + android:columnWidth="60dp" + android:stretchMode="columnWidth" + android:gravity="center" + android:minHeight="60dp" + android:layout_below="@+id/spinners" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/act_console.xml b/app/src/main/res/layout/act_console.xml new file mode 100644 index 0000000..f7db787 --- /dev/null +++ b/app/src/main/res/layout/act_console.xml @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="#ff000000" + > + + <TextView + android:id="@android:id/empty" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/terminal_no_hosts_connected" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" + /> + + <ViewFlipper + android:id="@+id/console_flip" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + /> + + <RelativeLayout + android:id="@+id/console_password_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:padding="5dip" + android:background="#80000000" + android:fadingEdge="horizontal" + android:fadingEdgeLength="25dip" + android:visibility="gone" + > + + <TextView + android:id="@+id/console_password_instructions" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="fill_parent" + android:visibility="gone" + android:layout_marginBottom="5dip" + /> + + <EditText + android:id="@+id/console_password" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:password="true" + android:singleLine="true" + android:layout_below="@+id/console_password_instructions" + /> + + </RelativeLayout> + + <RelativeLayout + android:id="@+id/console_boolean_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:padding="5dip" + android:background="#80000000" + android:fadingEdge="horizontal" + android:fadingEdgeLength="25dip" + android:visibility="gone" + > + + <TextView + android:id="@+id/console_prompt" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <Button + android:id="@+id/console_prompt_no" + android:text="@string/button_no" + android:paddingTop="5dip" + android:paddingBottom="10dip" + android:paddingLeft="40dip" + android:paddingRight="40dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_below="@+id/console_prompt" + android:clickable="false" + /> + + <Button + android:id="@+id/console_prompt_yes" + android:text="@string/button_yes" + android:paddingTop="5dip" + android:paddingBottom="10dip" + android:paddingLeft="40dip" + android:paddingRight="40dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toLeftOf="@+id/console_prompt_no" + android:layout_below="@+id/console_prompt" + /> + + </RelativeLayout> + + <RelativeLayout + android:id="@+id/keyboard_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:padding="15dip" + android:visibility="gone"> + + <ImageView + android:id="@+id/button_keyboard" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:src="@+drawable/button_keyboard" + android:contentDescription="@string/image_description_show_keyboard" + /> + + <ImageView + android:id="@+id/button_ctrl" + android:paddingRight="15dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentBottom="true" + android:src="@+drawable/button_ctrl" + android:contentDescription="@string/image_description_toggle_control_character" + /> + + <ImageView + android:id="@+id/button_esc" + android:paddingRight="15dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/button_ctrl" + android:layout_alignParentBottom="true" + android:src="@+drawable/button_esc" + android:contentDescription="@string/image_description_send_escape_character" + /> + + </RelativeLayout> + +</RelativeLayout> diff --git a/app/src/main/res/layout/act_generatepubkey.xml b/app/src/main/res/layout/act_generatepubkey.xml new file mode 100644 index 0000000..171ffd8 --- /dev/null +++ b/app/src/main/res/layout/act_generatepubkey.xml @@ -0,0 +1,185 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:scrollbars="vertical" + android:layout_width="fill_parent"> + + <TableLayout + android:orientation="vertical" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:scrollbars="vertical" + android:layout_width="fill_parent"> + + <TableRow> + <TextView + android:text="@string/prompt_nickname" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <EditText + android:id="@+id/nickname" + android:hint="@string/prompt_nickname_hint_pubkey" + android:layout_height="wrap_content" + android:singleLine="true" + android:layout_weight="1" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_type" + android:paddingRight="10dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="bottom|right" + android:layout_gravity="center_vertical" /> + + <RadioGroup + android:id="@+id/key_type" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:checkedButton="@+id/rsa"> + + <RadioButton + android:id="@+id/rsa" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="RSA" + android:paddingRight="3dip"/> + + <RadioButton + android:id="@+id/dsa" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="DSA" + android:paddingRight="3dip"/> + + <RadioButton + android:id="@+id/ec" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="EC" /> + </RadioGroup> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_bits" + android:paddingRight="10dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="right|center_vertical" /> + + <EditText + android:id="@+id/bits" + android:inputType="number" + android:layout_height="wrap_content" + android:text="1024" + android:singleLine="true" + android:layout_weight="1" /> + </TableRow> + + <SeekBar + android:layout_height="wrap_content" + android:id="@+id/bits_slider" + android:layout_width="fill_parent" + android:paddingBottom="10dip" + android:max="3328" + android:progress="256" /> + + <TextView + android:text="@string/prompt_password_can_be_blank" + android:gravity="left" + android:layout_height="wrap_content" + android:layout_width="wrap_content" /> + + <TableRow> + <TextView + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/prompt_password" /> + + <EditText + android:id="@+id/password1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:password="true" + android:singleLine="true" + android:layout_weight="1" /> + </TableRow> + + <TableRow android:paddingBottom="6dip"> + <LinearLayout + android:paddingRight="10dip" + android:orientation="vertical" + android:gravity="right|center_vertical"> + + <TextView + android:gravity="right|bottom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/prompt_password" /> + + <TextView + android:gravity="right|top" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="@string/prompt_again" /> + </LinearLayout> + + <EditText + android:id="@+id/password2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:password="true" + android:singleLine="true" + android:layout_weight="1" /> + </TableRow> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/unlock_at_startup" + android:text="@string/pubkey_load_on_start" /> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/confirm_use" + android:text="@string/pubkey_confirm_use" /> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/save" + android:text="@string/pubkey_generate" + android:enabled="false" + android:layout_marginTop="6dip"/> + </TableLayout> +</ScrollView> diff --git a/app/src/main/res/layout/act_help.xml b/app/src/main/res/layout/act_help.xml new file mode 100644 index 0000000..833aefb --- /dev/null +++ b/app/src/main/res/layout/act_help.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + > + + <LinearLayout + android:id="@+id/topics" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + > + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/msg_version" + android:paddingTop="2dip" + android:textAppearance="?android:attr/textAppearanceSmall" + android:gravity="right" + android:paddingRight="2dip" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/help_intro" + android:paddingTop="2dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_horizontal" + /> + + </LinearLayout> +</ScrollView> diff --git a/app/src/main/res/layout/act_help_topic.xml b/app/src/main/res/layout/act_help_topic.xml new file mode 100644 index 0000000..7123d63 --- /dev/null +++ b/app/src/main/res/layout/act_help_topic.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <org.connectbot.util.HelpTopicView + android:id="@+id/topic_text" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + /> + +</LinearLayout> diff --git a/app/src/main/res/layout/act_hostlist.xml b/app/src/main/res/layout/act_hostlist.xml new file mode 100644 index 0000000..3c6f4b1 --- /dev/null +++ b/app/src/main/res/layout/act_hostlist.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <RelativeLayout + android:id="@+id/quickconnect" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + > + + <Spinner + android:id="@+id/transport_selection" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_alignParentLeft="true" + /> + + <EditText + android:id="@+id/front_quickconnect" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:hint="username@hostname:port" + android:layout_toRightOf="@+id/transport_selection" + android:layout_alignBaseline="@+id/transport_selection" + android:inputType="textEmailAddress" + android:maxLines="1" + android:ellipsize="end" + android:focusableInTouchMode="true" + android:singleLine="true"/> + </RelativeLayout> + + + <ListView + android:id="@android:id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_above="@+id/quickconnect" + /> + + <TextView + android:id="@android:id/empty" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/list_host_empty" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" + android:layout_above="@+id/quickconnect" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/act_portforwardlist.xml b/app/src/main/res/layout/act_portforwardlist.xml new file mode 100644 index 0000000..b8589d0 --- /dev/null +++ b/app/src/main/res/layout/act_portforwardlist.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <ListView android:id="@android:id/list" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + /> + + <TextView android:id="@android:id/empty" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/portforward_list_empty" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" + /> +</LinearLayout> diff --git a/app/src/main/res/layout/act_pubkeylist.xml b/app/src/main/res/layout/act_pubkeylist.xml new file mode 100644 index 0000000..ceabb52 --- /dev/null +++ b/app/src/main/res/layout/act_pubkeylist.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <ListView android:id="@android:id/list" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + /> + + <TextView android:id="@android:id/empty" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/pubkey_list_empty" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" + /> +</LinearLayout> diff --git a/app/src/main/res/layout/act_wizard.xml b/app/src/main/res/layout/act_wizard.xml new file mode 100644 index 0000000..c68a561 --- /dev/null +++ b/app/src/main/res/layout/act_wizard.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="right" + > + + <ViewFlipper + android:id="@+id/wizard_flipper" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + /> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="5dip" + > + + <Button + android:id="@+id/action_prev" + android:layout_width="120dip" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_btn_back" + android:text="Cancel" + android:gravity="center" + /> + + <Button + android:id="@+id/action_next" + android:layout_width="120dip" + android:layout_height="wrap_content" + android:drawableRight="@drawable/ic_btn_next" + android:text="Agree" + android:gravity="center" + /> + + </LinearLayout> + +</LinearLayout> diff --git a/app/src/main/res/layout/dia_changepassword.xml b/app/src/main/res/layout/dia_changepassword.xml new file mode 100644 index 0000000..1548b3d --- /dev/null +++ b/app/src/main/res/layout/dia_changepassword.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + > + + <TableRow android:id="@+id/old_password_prompt"> + <TextView + android:text="@string/prompt_old_password" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + /> + + <EditText + android:id="@+id/old_password" + android:layout_width="200dip" + android:layout_height="wrap_content" + android:singleLine="true" + android:password="true" + /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_password" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + /> + + <EditText + android:id="@+id/password1" + android:layout_width="200dip" + android:layout_height="wrap_content" + android:singleLine="true" + android:password="true" + /> + </TableRow> + + <TableRow> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="right" + > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/prompt_password" + android:paddingRight="10dip" + android:gravity="right|bottom" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/prompt_again" + android:paddingRight="10dip" + android:gravity="right|top" + android:textAppearance="?android:attr/textAppearanceSmall" + /> + </LinearLayout> + + <EditText + android:id="@+id/password2" + android:layout_width="200dip" + android:layout_height="wrap_content" + android:singleLine="true" + android:password="true" + /> + </TableRow> +</TableLayout> diff --git a/app/src/main/res/layout/dia_gatherentropy.xml b/app/src/main/res/layout/dia_gatherentropy.xml new file mode 100644 index 0000000..8c7153a --- /dev/null +++ b/app/src/main/res/layout/dia_gatherentropy.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + > + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/pubkey_touch_hint" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center"/> + + <org.connectbot.util.EntropyView + android:id="@+id/entropy" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="#666666ff" + android:layout_marginBottom="10dip" + android:layout_marginTop="10dip" + android:drawingCacheQuality="auto"/> +</LinearLayout> diff --git a/app/src/main/res/layout/dia_password.xml b/app/src/main/res/layout/dia_password.xml new file mode 100644 index 0000000..599af83 --- /dev/null +++ b/app/src/main/res/layout/dia_password.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="250dip" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="10dip" + > + + <EditText + android:id="@android:id/text1" + android:layout_width="250dip" + android:singleLine="true" + android:layout_height="wrap_content" + android:password="true" + android:hint="Password" + /> + +</LinearLayout> + diff --git a/app/src/main/res/layout/dia_portforward.xml b/app/src/main/res/layout/dia_portforward.xml new file mode 100644 index 0000000..9402eef --- /dev/null +++ b/app/src/main/res/layout/dia_portforward.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:scrollbars="vertical" + > + + <TableLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + > + + <TableRow> + <TextView + android:text="@string/prompt_nickname" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <EditText + android:id="@+id/nickname" + android:hint="Internal Webserver" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:layout_weight="1" + /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_type" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <Spinner android:id="@+id/portforward_type" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:entries="@array/list_portforward_types" + android:prompt="@string/prompt_type" + android:layout_weight="1" + /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_source_port" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <EditText + android:id="@+id/portforward_source" + android:hint="8080" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:inputType="number" + /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/prompt_destination" + android:paddingRight="10dip" + android:gravity="right|center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <EditText + android:id="@+id/portforward_destination" + android:hint="localhost:80" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:inputType="textEmailAddress" + /> + </TableRow> + </TableLayout> +</ScrollView> diff --git a/app/src/main/res/layout/dia_resize.xml b/app/src/main/res/layout/dia_resize.xml new file mode 100644 index 0000000..2269bd6 --- /dev/null +++ b/app/src/main/res/layout/dia_resize.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + > + + <EditText + android:id="@+id/width" + android:layout_width="100dip" + android:layout_height="wrap_content" + android:singleLine="true" + android:numeric="integer" + android:text="80"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="x" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:gravity="right|bottom" + android:textAppearance="?android:attr/textAppearanceLarge" + /> + + + <EditText + android:id="@+id/height" + android:layout_width="100dip" + android:layout_height="wrap_content" + android:singleLine="true" + android:numeric="integer" + android:text="25"/> +</LinearLayout> diff --git a/app/src/main/res/layout/item_portforward.xml b/app/src/main/res/layout/item_portforward.xml new file mode 100644 index 0000000..4a98f24 --- /dev/null +++ b/app/src/main/res/layout/item_portforward.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="left|center_vertical" + android:layout_width="fill_parent" + android:padding="10dip" + > + + <TextView + android:id="@android:id/text1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="Tunnel Nickname" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + /> + + <TextView + android:id="@android:id/text2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="Local port 8080 to 192.168.1.1:80" + android:layout_below="@android:id/text1" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/item_pubkey.xml b/app/src/main/res/layout/item_pubkey.xml new file mode 100644 index 0000000..7f4fa5f --- /dev/null +++ b/app/src/main/res/layout/item_pubkey.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/content" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="10dip"> + + <ImageView + android:id="@android:id/icon1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/pubkey" + android:contentDescription="@string/image_description_key_is_locked" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="10dip"/> + + <TextView + android:id="@android:id/text1" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="Key Example" + android:layout_alignParentLeft="true" + android:bufferType="normal" android:layout_width="wrap_content" android:layout_toLeftOf="@android:id/icon1"/> + + <TextView + android:id="@android:id/text2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="DSA 1024-bit" + android:layout_below="@android:id/text1" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/item_terminal.xml b/app/src/main/res/layout/item_terminal.xml new file mode 100644 index 0000000..9a8ff19 --- /dev/null +++ b/app/src/main/res/layout/item_terminal.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <TextView + android:id="@+id/terminal_overlay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:background="#aa000000" + android:padding="10dip" + android:layout_centerInParent="true" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/wiz_eula.xml b/app/src/main/res/layout/wiz_eula.xml new file mode 100644 index 0000000..06b7c56 --- /dev/null +++ b/app/src/main/res/layout/wiz_eula.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + > + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="10dip" + > + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="ConnectBot is a simple, powerful, open-source Secure Shell (SSH) client for your Android device." + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:text="It can manage several SSH sessions, create secure tunnels, and copy/paste between other apps." + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:text="@string/copyright_info" + android:textAppearance="?android:attr/textAppearanceSmall" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:autoLink="web" + android:text="You can view the full text at http://www.gnu.org/licenses/gpl-3.0.txt" + android:textSize="14sp" + android:textColor="#bebebe" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:text="About and Credits" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:autoLink="web" + android:text="Copyright \u00a9 2007-2008 Kenny Root http://the-b.org, Jeffrey Sharkey http://jsharkey.org\n\nBased in part on the Trilead SSH2 client, provided under a BSD-style license. Copyright \u00a9 2007 Trilead AG. http://www.trilead.com\n\nAlso based on JTA Telnet/SSH client, provided under the GPLv2 license. Copyright \u00a9 Matthias L. Jugel, Marcus Meiner 1996-2005. http://www.javassh.org\n\nAlso based in part on the JSOCKS library, provided under the GNU LGPL license. http://jsocks.sourceforge.net\n\nAlso based in part on JZlib provided under a BSD-style license. Copyright \u00a9 JCraft, Inc., 2000-20004 http://www.jcraft.com" + android:textSize="14sp" + android:textColor="#bebebe" + /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:text="@string/msg_version" + android:textAppearance="?android:attr/textAppearanceSmall" + /> + + </LinearLayout> + +</ScrollView> |