aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/values
diff options
context:
space:
mode:
authorJohn Heroy <johnheroy@gmail.com>2015-10-21 14:23:46 -0700
committerJohn Heroy <johnheroy@gmail.com>2015-10-21 14:23:46 -0700
commit7a3851f2806a061c5ee030ddaed65876ea908e1c (patch)
tree2e7b8f391204a12b7eff0ee06d3d7681f3cacc90 /app/src/main/res/values
parent9fdcd2b1ce30b456158efe5e12876eb4e445a4c2 (diff)
parentb7f00efd50a7f13156525807a0925e26997bc541 (diff)
downloadconnectbot-7a3851f2806a061c5ee030ddaed65876ea908e1c.tar.gz
connectbot-7a3851f2806a061c5ee030ddaed65876ea908e1c.tar.bz2
connectbot-7a3851f2806a061c5ee030ddaed65876ea908e1c.zip
Merge branch 'master' into volume-seekbar
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r--app/src/main/res/values/dimens.xml25
-rw-r--r--app/src/main/res/values/strings.xml6
-rw-r--r--app/src/main/res/values/styles.xml36
3 files changed, 58 insertions, 9 deletions
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..1698002
--- /dev/null
+++ b/app/src/main/res/values/dimens.xml
@@ -0,0 +1,25 @@
+<?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.
+ -->
+
+<resources>
+ <dimen name="list_item_text_margin_left">72dp</dimen>
+ <dimen name="list_item_left_right_padding">16dp</dimen>
+ <dimen name="list_item_top_bottom_padding">20dp</dimen>
+ <dimen name="list_item_first_line_text_size">16sp</dimen>
+ <dimen name="list_item_second_line_text_size">14sp</dimen>
+</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 0d3e1ee..d472353 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -658,5 +658,11 @@
<string name="pubkey_add_new">Add new pubkey</string>
<!-- Text for button which, when clicked, brings up picker to import an existing pubkey. -->
<string name="pubkey_import_existing">Import existing pubkey</string>
+ <!-- Text for dialog which explains that the host URI is invalid and asks to discard. -->
+ <string name="discard_host_changes_message">Host URI is invalid. Would you like to discard changes?</string>
+ <!-- Text for button which discards changes to the host. -->
+ <string name="discard_host_button">Discard</string>
+ <!-- Text for button which does not discard changes and keeps editing. -->
+ <string name="discard_host_cancel_button">Keep editing</string>
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index af3bd79..f782fb4 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -16,7 +16,7 @@
~ limitations under the License.
*/
-->
-<resources>
+<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.AppCompat">
<item name="colorPrimary">@color/primary</item>
@@ -36,14 +36,38 @@
<item name="android:background">@drawable/keyboard_button_selector</item>
</style>
+ <style name="ListItemIcon">
+ <item name="android:layout_marginLeft">@dimen/list_item_left_right_padding</item>
+ <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/list_item_left_right_padding</item>
+ <item name="android:layout_centerVertical">true</item>
+ <item name="android:layout_alignParentLeft">true</item>
+ <item name="android:layout_alignParentStart" tools:ignore="NewApi">true</item>
+ </style>
+
<style name="ListItemFirstLineText">
+ <item name="android:layout_alignParentTop">true</item>
<item name="android:textColor">?android:textColorPrimary</item>
- <item name="android:textSize">16sp</item>
+ <item name="android:textSize">@dimen/list_item_first_line_text_size</item>
+ <item name="android:paddingTop">@dimen/list_item_top_bottom_padding</item>
+ <item name="android:layout_alignParentLeft">true</item>
+ </style>
+
+ <style name="ListItemFirstLineText.WithIcon" parent="ListItemFirstLineText">
+ <item name="android:layout_marginLeft">@dimen/list_item_text_margin_left</item>
+ <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/list_item_text_margin_left</item>
</style>
<style name="ListItemSecondLineText">
+ <item name="android:layout_alignParentBottom">true</item>
<item name="android:textColor">?android:textColorSecondary</item>
- <item name="android:textSize">14sp</item>
+ <item name="android:textSize">@dimen/list_item_second_line_text_size</item>
+ <item name="android:paddingBottom">@dimen/list_item_top_bottom_padding</item>
+ <item name="android:layout_alignParentLeft">true</item>
+ </style>
+
+ <style name="ListItemSecondLineText.WithIcon" parent="ListItemSecondLineText">
+ <item name="android:layout_marginLeft">@dimen/list_item_text_margin_left</item>
+ <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/list_item_text_margin_left</item>
</style>
<style name="ListItemFirstLineText.Red" parent="ListItemFirstLineText">
@@ -77,10 +101,4 @@
<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>