aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res
diff options
context:
space:
mode:
authorRyan Hansberry <rhansby@gmail.com>2015-09-22 14:02:21 -0700
committerRyan Hansberry <rhansby@gmail.com>2015-09-22 14:02:21 -0700
commit757b43a3e16b9f0687be9215f2cdc203fda98431 (patch)
treeddb7fffedd83957c80b8d2f1eb72148cfc97c391 /app/src/main/res
parent0f293ab7927470ab3a2d78064cc3c66e2523415f (diff)
parentea5c3e8b7f1926af45921d35d79fb6dca63b5fd3 (diff)
downloadconnectbot-757b43a3e16b9f0687be9215f2cdc203fda98431.tar.gz
connectbot-757b43a3e16b9f0687be9215f2cdc203fda98431.tar.bz2
connectbot-757b43a3e16b9f0687be9215f2cdc203fda98431.zip
Merge branch 'master' into convert-activities-to-appcompat
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable-hdpi/ic_add.pngbin0 -> 127 bytes
-rw-r--r--app/src/main/res/drawable-mdpi/ic_add.pngbin0 -> 88 bytes
-rw-r--r--app/src/main/res/drawable-xhdpi/ic_add.pngbin0 -> 97 bytes
-rw-r--r--app/src/main/res/drawable-xxhdpi/ic_add.pngbin0 -> 97 bytes
-rw-r--r--app/src/main/res/drawable-xxxhdpi/ic_add.pngbin0 -> 102 bytes
-rw-r--r--app/src/main/res/layout/act_hostlist.xml43
-rw-r--r--app/src/main/res/layout/dia_add_host.xml47
-rw-r--r--app/src/main/res/values/colors.xml5
-rw-r--r--app/src/main/res/values/strings.xml2
9 files changed, 67 insertions, 30 deletions
diff --git a/app/src/main/res/drawable-hdpi/ic_add.png b/app/src/main/res/drawable-hdpi/ic_add.png
new file mode 100644
index 0000000..694179b
--- /dev/null
+++ b/app/src/main/res/drawable-hdpi/ic_add.png
Binary files differ
diff --git a/app/src/main/res/drawable-mdpi/ic_add.png b/app/src/main/res/drawable-mdpi/ic_add.png
new file mode 100644
index 0000000..3856041
--- /dev/null
+++ b/app/src/main/res/drawable-mdpi/ic_add.png
Binary files differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_add.png b/app/src/main/res/drawable-xhdpi/ic_add.png
new file mode 100644
index 0000000..67bb598
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic_add.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_add.png b/app/src/main/res/drawable-xxhdpi/ic_add.png
new file mode 100644
index 0000000..0fdced8
--- /dev/null
+++ b/app/src/main/res/drawable-xxhdpi/ic_add.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_add.png b/app/src/main/res/drawable-xxxhdpi/ic_add.png
new file mode 100644
index 0000000..d64c22e
--- /dev/null
+++ b/app/src/main/res/drawable-xxxhdpi/ic_add.png
Binary files differ
diff --git a/app/src/main/res/layout/act_hostlist.xml b/app/src/main/res/layout/act_hostlist.xml
index bf80b1d..216fedf 100644
--- a/app/src/main/res/layout/act_hostlist.xml
+++ b/app/src/main/res/layout/act_hostlist.xml
@@ -20,54 +20,37 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
- <LinearLayout
- android:id="@+id/quickconnect"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:orientation="horizontal"
- >
-
- <Spinner
- android:id="@+id/transport_selection"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
-
- <EditText
- android:id="@+id/front_quickconnect"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:focusableInTouchMode="true"
- android:hint="username@hostname:port"
- android:inputType="textEmailAddress"
- android:maxLines="1"
- android:singleLine="true"/>
- </LinearLayout>
-
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:layout_above="@+id/quickconnect"
/>
<TextView
android:id="@+id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:layout_above="@+id/quickconnect"
android:gravity="center"
android:text="@string/list_host_empty"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/add_host_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentRight="true"
+ android:layout_margin="16dp"
+ android:src="@drawable/ic_add"
+ app:backgroundTint="@color/accent"
+ app:rippleColor="@color/dark_accent" />
+
</RelativeLayout>
diff --git a/app/src/main/res/layout/dia_add_host.xml b/app/src/main/res/layout/dia_add_host.xml
new file mode 100644
index 0000000..609690f
--- /dev/null
+++ b/app/src/main/res/layout/dia_add_host.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ 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:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="horizontal"
+ android:padding="10dp"
+ >
+
+ <Spinner
+ android:id="@+id/transport_selection"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ <EditText
+ android:id="@+id/front_quickconnect"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:focusableInTouchMode="true"
+ android:hint="username@hostname:port"
+ android:inputType="textEmailAddress"
+ android:maxLines="1"
+ android:singleLine="true"
+ android:layout_marginBottom="30dp"
+ />
+
+</LinearLayout>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 299b896..e61a9e8 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -27,4 +27,9 @@
<color name="primary">#00BCD4</color>
<color name="accent">#F4511E</color>
+ <color name="dark_accent">#BF360C</color>
+
+ <color name="fab_color_pressed">#F4511E</color>
+ <color name="fab_color_normal">#F4511E</color>
+
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4820846..1b786b3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -152,6 +152,8 @@
<!-- Add a new item (e.g., host or pubkey) to the list. -->
<string name="button_add">"Add"</string>
+ <!-- Cancel an action. -->
+ <string name="button_cancel">Cancel</string>
<!-- Change an existing item's (e.g., host or pubkey) details. -->
<string name="button_change">"Change"</string>
<!-- Button that begins the generation of a public key pair. -->