diff options
author | Kyle Horimoto <khorimoto@gmail.com> | 2015-10-01 10:37:57 -0700 |
---|---|---|
committer | Kyle Horimoto <khorimoto@gmail.com> | 2015-10-01 10:43:21 -0700 |
commit | 8f03cfeb51904905f351a9e1894b8a64a087b097 (patch) | |
tree | d4f79502b420843b6a198b9a376315012cf95f21 /app/src/main/res/layout | |
parent | f434d8d2cdb616d643326353fc9eea3151dd8a6a (diff) | |
download | connectbot-8f03cfeb51904905f351a9e1894b8a64a087b097.tar.gz connectbot-8f03cfeb51904905f351a9e1894b8a64a087b097.tar.bz2 connectbot-8f03cfeb51904905f351a9e1894b8a64a087b097.zip |
Add host display editing UI.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/fragment_host_editor.xml | 341 |
1 files changed, 213 insertions, 128 deletions
diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml index b2dc0fe..6f429ac 100644 --- a/app/src/main/res/layout/fragment_host_editor.xml +++ b/app/src/main/res/layout/fragment_host_editor.xml @@ -23,133 +23,218 @@ 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 + 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" + /> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + > + + <EditText + android:id="@+id/nickname_field" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:maxLines="1" + android:inputType="text" + android:hint="@string/hostpref_nickname_title" + /> + + </android.support.design.widget.TextInputLayout> + + <LinearLayout + android:layout_width="match_parent" + 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/hostpref_color_title" + android:textSize="12sp" + /> + + <Spinner + android:id="@+id/color_selector" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:entries="@array/list_colors" + android:entryValues="@array/list_color_values" + /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_marginStart="4dp" + android:layout_marginLeft="4dp" + android:layout_marginBottom="4dp" + > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/hostpref_fontsize_title" + android:textSize="12sp" + /> + + <TextView + android:id="@+id/font_size_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="12sp" + /> + + </LinearLayout> + + <SeekBar + android:id="@+id/font_size_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:max="32" + /> + + </LinearLayout> + + <View style="@style/Divider" + /> </LinearLayout> |