diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable-hdpi/ic_expand_less.png | bin | 0 -> 156 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-hdpi/ic_expand_more.png | bin | 0 -> 159 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-mdpi/ic_expand_less.png | bin | 0 -> 129 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-mdpi/ic_expand_more.png | bin | 0 -> 129 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xhdpi/ic_expand_less.png | bin | 0 -> 179 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xhdpi/ic_expand_more.png | bin | 0 -> 182 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxhdpi/ic_expand_less.png | bin | 0 -> 230 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxhdpi/ic_expand_more.png | bin | 0 -> 237 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxxhdpi/ic_expand_less.png | bin | 0 -> 284 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxxhdpi/ic_expand_more.png | bin | 0 -> 287 bytes | |||
-rw-r--r-- | app/src/main/res/layout/activity_edit_host.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_host_editor.xml | 155 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 7 |
14 files changed, 191 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 Binary files differnew file mode 100644 index 0000000..dea8988 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_expand_less.png diff --git a/app/src/main/res/drawable-hdpi/ic_expand_more.png b/app/src/main/res/drawable-hdpi/ic_expand_more.png Binary files differnew file mode 100644 index 0000000..022e057 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_expand_more.png diff --git a/app/src/main/res/drawable-mdpi/ic_expand_less.png b/app/src/main/res/drawable-mdpi/ic_expand_less.png Binary files differnew file mode 100644 index 0000000..a2e4baa --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_expand_less.png diff --git a/app/src/main/res/drawable-mdpi/ic_expand_more.png b/app/src/main/res/drawable-mdpi/ic_expand_more.png Binary files differnew file mode 100644 index 0000000..910bb2a --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_expand_more.png diff --git a/app/src/main/res/drawable-xhdpi/ic_expand_less.png b/app/src/main/res/drawable-xhdpi/ic_expand_less.png Binary files differnew file mode 100644 index 0000000..ae36d91 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_expand_less.png diff --git a/app/src/main/res/drawable-xhdpi/ic_expand_more.png b/app/src/main/res/drawable-xhdpi/ic_expand_more.png Binary files differnew file mode 100644 index 0000000..c42e2a0 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_expand_more.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_expand_less.png b/app/src/main/res/drawable-xxhdpi/ic_expand_less.png Binary files differnew file mode 100644 index 0000000..62fc386 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_expand_less.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_expand_more.png b/app/src/main/res/drawable-xxhdpi/ic_expand_more.png Binary files differnew file mode 100644 index 0000000..dbc0b20 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_expand_more.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png b/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png Binary files differnew file mode 100644 index 0000000..4261551 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_expand_less.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png b/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png Binary files differnew file mode 100644 index 0000000..2859a6f --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_expand_more.png 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..f417b18 --- /dev/null +++ b/app/src/main/res/layout/activity_edit_host.xml @@ -0,0 +1,24 @@ +<!-- + ~ 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" + tools:ignore="MergeRootFrame" /> 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..b2dc0fe --- /dev/null +++ b/app/src/main/res/layout/fragment_host_editor.xml @@ -0,0 +1,155 @@ +<!-- + ~ 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" + tools:ignore="UnusedAttribute" + > + + <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="textNoSuggestions" + /> + + </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:layout_marginStart="56dp" + android:visibility="gone" + android:animateLayoutChanges="true" + tools:ignore="UnusedAttribute" + > + + <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="textNoSuggestions" + /> + + </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="textNoSuggestions" + /> + + </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..be9518a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -594,4 +594,9 @@ <string name="button_key_f11">F11</string> <!-- Text for the "F12" button in virtual keyboard. --> <string name="button_key_f12">F12</string> + <!-- Label for spinner which allows user to select SSH/Telnet/Local. --> + <string name="protocol_spinner_label">Protocol</string> + <!-- Label for button which expands/collapses section. --> + <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> |