From d57ab6f788707defad29df2432eafe1bc4dd4e79 Mon Sep 17 00:00:00 2001 From: Kyle Horimoto Date: Tue, 20 Oct 2015 11:52:14 -0700 Subject: Polish UI for add/edit host. --- app/src/main/res/layout/fragment_host_editor.xml | 439 ++++++++++++++++------- 1 file changed, 316 insertions(+), 123 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml index 5e809d8..20d835d 100644 --- a/app/src/main/res/layout/fragment_host_editor.xml +++ b/app/src/main/res/layout/fragment_host_editor.xml @@ -19,7 +19,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" + android:fillViewport="true" tools:context="org.connectbot.HostEditorFragment" > @@ -29,31 +30,41 @@ android:orientation="vertical" > - + + - - + - - - - + android:layout_marginLeft="68dp" + android:layout_marginStart="68dp" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + > - + - + + + + + + - - + - + + + + - - - + + + + + + - + - + - + + - - + + + + + + + + + + + + + @@ -307,6 +429,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/hostpref_authagent_with_confirmation" + android:textSize="14sp" + android:layout_marginTop="8dp" + android:layout_marginLeft="72dp" /> @@ -322,14 +448,24 @@ + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + -- cgit v1.2.3 From 4caf205c1abfd17dc4c605ec579df23df8f72d0e Mon Sep 17 00:00:00 2001 From: Kyle Horimoto Date: Tue, 20 Oct 2015 18:18:47 -0700 Subject: Lint and jlklein comments. --- app/src/main/res/layout/fragment_host_editor.xml | 34 +++++++++++++++++------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml index 20d835d..e4a2094 100644 --- a/app/src/main/res/layout/fragment_host_editor.xml +++ b/app/src/main/res/layout/fragment_host_editor.xml @@ -40,6 +40,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/protocol_spinner_label" style="@style/ListItemIcon" /> @@ -206,6 +207,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_color_title" style="@style/ListItemIcon" /> @@ -237,6 +239,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_fontsize_title" style="@style/ListItemIcon" /> @@ -270,9 +273,9 @@ android:id="@+id/font_size_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" android:layout_gravity="center_vertical" android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:inputType="number" android:maxLines="1" tools:text="10" @@ -292,6 +295,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_pubkeyid_title" style="@style/ListItemIcon" /> @@ -324,6 +328,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_delkey_title" style="@style/ListItemIcon" /> @@ -356,6 +361,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_encoding_title" style="@style/ListItemIcon" /> @@ -394,17 +400,10 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_authagent_title" style="@style/ListItemIcon" /> - - + + @@ -501,6 +513,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_wantsession_title" style="@style/ListItemIcon" /> @@ -545,6 +558,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_stayconnected_title" style="@style/ListItemIcon" /> @@ -589,6 +603,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_quickdisconnect_title" style="@style/ListItemIcon" /> @@ -633,6 +648,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/icon" + android:contentDescription="@string/hostpref_postlogin_title" style="@style/ListItemIcon" /> -- cgit v1.2.3