aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res
diff options
context:
space:
mode:
authorKyle Horimoto <khorimoto@gmail.com>2015-09-18 12:22:29 -0700
committerKyle Horimoto <khorimoto@gmail.com>2015-09-25 11:23:36 -0700
commita9700a076d09989a5c6ae77888096e1ad5e4ffbf (patch)
treeaf73f204ad679a6988bd3e97e831aaa5a8a537ba /app/src/main/res
parentd88325b798d01a4584f551ea14ff072453ce603a (diff)
downloadconnectbot-a9700a076d09989a5c6ae77888096e1ad5e4ffbf.tar.gz
connectbot-a9700a076d09989a5c6ae77888096e1ad5e4ffbf.tar.bz2
connectbot-a9700a076d09989a5c6ae77888096e1ad5e4ffbf.zip
Add EditHostActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable-hdpi/ic_expand_less.pngbin0 -> 156 bytes
-rw-r--r--app/src/main/res/drawable-hdpi/ic_expand_more.pngbin0 -> 159 bytes
-rw-r--r--app/src/main/res/drawable-mdpi/ic_expand_less.pngbin0 -> 129 bytes
-rw-r--r--app/src/main/res/drawable-mdpi/ic_expand_more.pngbin0 -> 129 bytes
-rw-r--r--app/src/main/res/drawable-xhdpi/ic_expand_less.pngbin0 -> 179 bytes
-rw-r--r--app/src/main/res/drawable-xhdpi/ic_expand_more.pngbin0 -> 182 bytes
-rw-r--r--app/src/main/res/drawable-xxhdpi/ic_expand_less.pngbin0 -> 230 bytes
-rw-r--r--app/src/main/res/drawable-xxhdpi/ic_expand_more.pngbin0 -> 237 bytes
-rw-r--r--app/src/main/res/drawable-xxxhdpi/ic_expand_less.pngbin0 -> 284 bytes
-rw-r--r--app/src/main/res/drawable-xxxhdpi/ic_expand_more.pngbin0 -> 287 bytes
-rw-r--r--app/src/main/res/layout/activity_edit_host.xml23
-rw-r--r--app/src/main/res/layout/fragment_host_editor.xml137
-rw-r--r--app/src/main/res/values/strings.xml4
-rw-r--r--app/src/main/res/values/styles.xml7
14 files changed, 171 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-hdpi/ic_expand_less.png b/app/src/main/res/drawable-hdpi/ic_expand_less.png
new file mode 100644
index 0000000..dea8988
--- /dev/null
+++ b/app/src/main/res/drawable-hdpi/ic_expand_less.png
Binary files differ
diff --git a/app/src/main/res/drawable-hdpi/ic_expand_more.png b/app/src/main/res/drawable-hdpi/ic_expand_more.png
new file mode 100644
index 0000000..022e057
--- /dev/null
+++ b/app/src/main/res/drawable-hdpi/ic_expand_more.png
Binary files differ
diff --git a/app/src/main/res/drawable-mdpi/ic_expand_less.png b/app/src/main/res/drawable-mdpi/ic_expand_less.png
new file mode 100644
index 0000000..a2e4baa
--- /dev/null
+++ b/app/src/main/res/drawable-mdpi/ic_expand_less.png
Binary files differ
diff --git a/app/src/main/res/drawable-mdpi/ic_expand_more.png b/app/src/main/res/drawable-mdpi/ic_expand_more.png
new file mode 100644
index 0000000..910bb2a
--- /dev/null
+++ b/app/src/main/res/drawable-mdpi/ic_expand_more.png
Binary files differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_expand_less.png b/app/src/main/res/drawable-xhdpi/ic_expand_less.png
new file mode 100644
index 0000000..ae36d91
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic_expand_less.png
Binary files differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_expand_more.png b/app/src/main/res/drawable-xhdpi/ic_expand_more.png
new file mode 100644
index 0000000..c42e2a0
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic_expand_more.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_expand_less.png b/app/src/main/res/drawable-xxhdpi/ic_expand_less.png
new file mode 100644
index 0000000..62fc386
--- /dev/null
+++ b/app/src/main/res/drawable-xxhdpi/ic_expand_less.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_expand_more.png b/app/src/main/res/drawable-xxhdpi/ic_expand_more.png
new file mode 100644
index 0000000..dbc0b20
--- /dev/null
+++ b/app/src/main/res/drawable-xxhdpi/ic_expand_more.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png b/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png
new file mode 100644
index 0000000..4261551
--- /dev/null
+++ b/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png b/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png
new file mode 100644
index 0000000..2859a6f
--- /dev/null
+++ b/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png
Binary files differ
diff --git a/app/src/main/res/layout/activity_edit_host.xml b/app/src/main/res/layout/activity_edit_host.xml
new file mode 100644
index 0000000..f2aa96c
--- /dev/null
+++ b/app/src/main/res/layout/activity_edit_host.xml
@@ -0,0 +1,23 @@
+<!--
+ ~ ConnectBot: simple, powerful, open-source SSH client for Android
+ ~ Copyright 2015 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.
+ -->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_container"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ tools:context="org.connectbot.EditHostActivity" />
diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml
new file mode 100644
index 0000000..a88c1d4
--- /dev/null
+++ b/app/src/main/res/layout/fragment_host_editor.xml
@@ -0,0 +1,137 @@
+<!--
+ ~ ConnectBot: simple, powerful, open-source SSH client for Android
+ ~ Copyright 2015 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"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context="org.connectbot.HostEditorFragment">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:layout_marginBottom="4dp" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/protocol_spinner_label"
+ android:textSize="12sp" />
+
+ <Spinner
+ android:id="@+id/transport_selector"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:animateLayoutChanges="true">
+
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/quickconnect_field_container"
+ android:layout_width="0dp"
+ android:layout_weight ="1"
+ android:layout_height="wrap_content">
+
+ <EditText
+ android:id="@+id/quickconnect_field"
+ android:layout_width="match_parent"
+ android:layout_weight="1"
+ android:layout_height="wrap_content"
+ android:maxLines="1"
+ android:inputType="text" />
+
+ </android.support.design.widget.TextInputLayout>
+
+ <ImageButton
+ android:id="@+id/expand_collapse_button"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
+ android:layout_gravity="center"
+ android:layout_margin="16dp"
+ android:src="@drawable/ic_expand_more"
+ android:contentDescription="@string/expand"
+ android:background="#00000000" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/uri_parts_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:layout_marginLeft="56dp"
+ android:visibility="gone"
+ android:animateLayoutChanges="true">
+
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/username_field_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <EditText
+ android:id="@+id/username_edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/hostpref_username_title"
+ android:maxLines="1"
+ android:inputType="text" />
+
+ </android.support.design.widget.TextInputLayout>
+
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/hostname_field_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <EditText
+ android:id="@+id/hostname_edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/hostpref_hostname_title"
+ android:maxLines="1"
+ android:inputType="text" />
+
+ </android.support.design.widget.TextInputLayout>
+
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/port_field_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <EditText
+ android:id="@+id/port_edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="number"
+ android:hint="@string/hostpref_port_title"
+ android:maxLines="1" />
+
+ </android.support.design.widget.TextInputLayout>
+
+ </LinearLayout>
+
+ <View style="@style/Divider" />
+
+</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f41d10b..aa40906 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -594,4 +594,8 @@
<string name="button_key_f11">F11</string>
<!-- Text for the "F12" button in virtual keyboard. -->
<string name="button_key_f12">F12</string>
+ <string name="connection_type">Connection type:</string>
+ <string name="protocol_spinner_label">Protocol</string>
+ <string name="expand">Expand</string>
+
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 322f5e1..af3bd79 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -76,4 +76,11 @@
<style name="SwitchCompatTheme" parent="Theme.AppCompat">
<item name="colorAccent">@color/accent</item>
</style>
+
+ <style name="Divider">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">1dp</item>
+ <item name="android:background">?android:attr/listDivider</item>
+ </style>
+
</resources>