diff options
author | Jeremy Klein <jklein24@gmail.com> | 2015-10-21 13:09:07 -0700 |
---|---|---|
committer | Jeremy Klein <jklein24@gmail.com> | 2015-10-21 13:09:07 -0700 |
commit | 950cc0fd0d89e41592006857c111c5a16f3a1819 (patch) | |
tree | 4376d6860cf9de47d17fd5f179b06a5910973816 /app/src/main/res | |
parent | 5295bbcaae77e9cd797c3ff7ae8fc9dba5549604 (diff) | |
parent | 4e3a133f4b5d2e83287c4669f8cc9d94dd63a694 (diff) | |
download | connectbot-950cc0fd0d89e41592006857c111c5a16f3a1819.tar.gz connectbot-950cc0fd0d89e41592006857c111c5a16f3a1819.tar.bz2 connectbot-950cc0fd0d89e41592006857c111c5a16f3a1819.zip |
Merge pull request #304 from khorimoto/polish-ui-edit-host
Polish UI for add/edit host.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_host_editor.xml | 461 | ||||
-rw-r--r-- | app/src/main/res/values-v11/styles.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/values/dimens.xml | 25 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 36 |
4 files changed, 397 insertions, 138 deletions
diff --git a/app/src/main/res/layout/fragment_host_editor.xml b/app/src/main/res/layout/fragment_host_editor.xml index 5e809d8..e4a2094 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,42 @@ android:orientation="vertical" > - <LinearLayout - android:layout_width="wrap_content" + <RelativeLayout + android:id="@+id/protocol_item" + 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" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/protocol_spinner_label" + style="@style/ListItemIcon" + /> + <TextView + android:id="@+id/protocol_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/protocol_spinner_label" - android:textSize="12sp" + style="@style/ListItemFirstLineText.WithIcon" /> - <Spinner - android:id="@+id/transport_selector" + <TextView + android:id="@+id/protocol_text" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_below="@id/protocol_title" + tools:text="ssh" + style="@style/ListItemSecondLineText.WithIcon" /> - </LinearLayout> + </RelativeLayout> <LinearLayout + android:layout_marginLeft="68dp" + android:layout_marginStart="68dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" @@ -96,8 +108,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:layout_marginLeft="56dp" - android:layout_marginStart="56dp" + android:layout_marginLeft="68dp" + android:layout_marginStart="68dp" + android:layout_marginRight="48dp" + android:layout_marginEnd="48dp" android:visibility="gone" android:animateLayoutChanges="true" tools:ignore="UnusedAttribute" @@ -156,118 +170,219 @@ </LinearLayout> - <View style="@style/Divider" - /> - - <android.support.design.widget.TextInputLayout + <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" > - <EditText - android:id="@+id/nickname_field" + <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:inputType="text" - android:hint="@string/hostpref_nickname_title" - /> + android:layout_marginLeft="68dp" + android:layout_marginStart="68dp" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + > + + <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> + </android.support.design.widget.TextInputLayout> - <LinearLayout + </RelativeLayout> + + <RelativeLayout + android:id="@+id/color_item" 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" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_color_title" + style="@style/ListItemIcon" + /> + <TextView + android:id="@+id/color_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hostpref_color_title" - android:textSize="12sp" + style="@style/ListItemFirstLineText.WithIcon" /> - <Spinner - android:id="@+id/color_selector" + <TextView + android:id="@+id/color_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:entries="@array/list_colors" - android:entryValues="@array/list_color_values" + android:layout_below="@id/color_title" + tools:text="gray" + style="@style/ListItemSecondLineText.WithIcon" /> - </LinearLayout> + </RelativeLayout> - <LinearLayout + <RelativeLayout 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" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_fontsize_title" + style="@style/ListItemIcon" + /> + + <TextView + android:id="@+id/font_size_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/hostpref_fontsize_title" + style="@style/ListItemFirstLineText.WithIcon" + /> + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginLeft="62dp" + android:layout_marginStart="62dp" + android:paddingBottom="8dp" + android:layout_below="@id/font_size_title" > - <TextView - android:layout_width="wrap_content" + <SeekBar + android:id="@+id/font_size_bar" + android:layout_width="0dp" + android:layout_weight="1" android:layout_height="wrap_content" - android:text="@string/hostpref_fontsize_title" - android:textSize="12sp" + android:layout_gravity="center" + android:max="32" /> - <TextView + <EditText android:id="@+id/font_size_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textSize="12sp" + android:layout_gravity="center_vertical" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:inputType="number" + android:maxLines="1" + tools:text="10" /> </LinearLayout> - <SeekBar - android:id="@+id/font_size_bar" - android:layout_width="match_parent" + </RelativeLayout> + + <RelativeLayout + android:id="@+id/pubkey_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + > + + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_pubkeyid_title" + style="@style/ListItemIcon" + /> + + <TextView + android:id="@+id/pubkey_title" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:max="32" + android:text="@string/hostpref_pubkeyid_title" + style="@style/ListItemFirstLineText.WithIcon" /> - </LinearLayout> + <TextView + android:id="@+id/pubkey_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/pubkey_title" + tools:text="Use any key" + style="@style/ListItemSecondLineText.WithIcon" + /> - <View style="@style/Divider" - /> + </RelativeLayout> - <LinearLayout - android:layout_width="wrap_content" + <RelativeLayout + android:id="@+id/delkey_item" + 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" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_delkey_title" + style="@style/ListItemIcon" + /> + <TextView + android:id="@+id/delkey_title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/hostpref_pubkeyid_title" - android:textSize="12sp" + android:text="@string/hostpref_delkey_title" + style="@style/ListItemFirstLineText.WithIcon" /> - <Spinner - android:id="@+id/pubkey_spinner" + <TextView + android:id="@+id/delkey_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:entries="@array/list_pubkeyids" - android:entryValues="@array/list_pubkeyids_value" + android:layout_below="@id/delkey_title" + tools:text="Delete" + style="@style/ListItemSecondLineText.WithIcon" /> - </LinearLayout> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/encoding_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + > + + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_encoding_title" + style="@style/ListItemIcon" + /> + + <TextView + android:id="@+id/encoding_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/hostpref_encoding_title" + style="@style/ListItemFirstLineText.WithIcon" + /> + + <TextView + android:id="@+id/encoding_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/encoding_title" + tools:text="UTF-8" + style="@style/ListItemSecondLineText.WithIcon" + /> + + </RelativeLayout> <LinearLayout android:layout_width="match_parent" @@ -276,14 +391,17 @@ > <RelativeLayout + android:id="@+id/use_ssh_auth_item" android:layout_width="match_parent" android:layout_height="wrap_content" > - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/hostpref_authagent_title" + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_authagent_title" + style="@style/ListItemIcon" /> <android.support.v7.widget.SwitchCompat @@ -292,14 +410,28 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerVertical="true" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/use_ssh_auth_switch" + android:layout_toStartOf="@id/use_ssh_auth_switch" + android:text="@string/hostpref_authagent_title" + android:paddingBottom="24dp" + style="@style/ListItemFirstLineText.WithIcon" + tools:ignore="RelativeOverlap" /> </RelativeLayout> <RelativeLayout - android:id="@+id/ssh_confirmation_container" + android:id="@+id/ssh_auth_confirmation_item" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="32dp" android:visibility="gone" > @@ -307,6 +439,10 @@ 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" + android:layout_marginStart="72dp" /> <android.support.v7.widget.AppCompatCheckBox @@ -315,6 +451,7 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:padding="16dp" /> </RelativeLayout> @@ -322,14 +459,25 @@ </LinearLayout> <RelativeLayout + android:id="@+id/compression_item" android:layout_width="match_parent" android:layout_height="wrap_content" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_compression_title" + style="@style/ListItemIcon" + /> + <TextView - android:layout_width="match_parent" + android:id="@+id/compression_title" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hostpref_compression_title" + style="@style/ListItemFirstLineText.WithIcon" /> <android.support.v7.widget.SwitchCompat @@ -338,19 +486,43 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerVertical="true" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/compression_switch" + android:layout_toStartOf="@id/compression_switch" + android:layout_below="@id/compression_title" + android:text="@string/hostpref_compression_summary" + style="@style/ListItemSecondLineText.WithIcon" /> </RelativeLayout> <RelativeLayout + android:id="@+id/start_shell_item" android:layout_width="match_parent" android:layout_height="wrap_content" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_wantsession_title" + style="@style/ListItemIcon" + /> + <TextView - android:layout_width="match_parent" + android:id="@+id/shell_session_title" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hostpref_wantsession_title" + style="@style/ListItemFirstLineText.WithIcon" /> <android.support.v7.widget.SwitchCompat @@ -359,19 +531,43 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerVertical="true" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/hostpref_wantsession_summary" + android:layout_toLeftOf="@id/start_shell_switch" + android:layout_toStartOf="@id/start_shell_switch" + android:layout_below="@id/shell_session_title" + style="@style/ListItemSecondLineText.WithIcon" /> </RelativeLayout> <RelativeLayout + android:id="@+id/stay_connected_item" android:layout_width="match_parent" android:layout_height="wrap_content" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_stayconnected_title" + style="@style/ListItemIcon" + /> + <TextView - android:layout_width="match_parent" + android:id="@+id/stay_connected_title" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hostpref_stayconnected_title" + style="@style/ListItemFirstLineText.WithIcon" /> <android.support.v7.widget.SwitchCompat @@ -380,19 +576,43 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerVertical="true" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/hostpref_stayconnected_summary" + android:layout_toLeftOf="@id/stay_connected_switch" + android:layout_toStartOf="@id/stay_connected_switch" + android:layout_below="@id/stay_connected_title" + style="@style/ListItemSecondLineText.WithIcon" /> </RelativeLayout> <RelativeLayout + android:id="@+id/close_on_disconnect_item" android:layout_width="match_parent" android:layout_height="wrap_content" > + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_quickdisconnect_title" + style="@style/ListItemIcon" + /> + <TextView - android:layout_width="match_parent" + android:id="@+id/close_on_disconnect_title" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hostpref_quickdisconnect_title" + style="@style/ListItemFirstLineText.WithIcon" /> <android.support.v7.widget.SwitchCompat @@ -401,81 +621,70 @@ android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerVertical="true" /> - </RelativeLayout> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - > - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/hostpref_postlogin_title" - /> - - <EditText - android:id="@+id/post_login_automation_field" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_width="fill_parent" - android:inputType="textMultiLine" - android:lines="8" - android:minLines="2" + android:text="@string/hostpref_quickdisconnect_summary" + android:layout_toLeftOf="@id/close_on_disconnect_switch" + android:layout_toStartOf="@id/close_on_disconnect_switch" + android:layout_below="@id/close_on_disconnect_title" + style="@style/ListItemSecondLineText.WithIcon" /> </RelativeLayout> - <LinearLayout - android:layout_width="wrap_content" + <RelativeLayout + android:id="@+id/postlogin_item" + 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_delkey_title" - android:textSize="12sp" + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/icon" + android:contentDescription="@string/hostpref_postlogin_title" + style="@style/ListItemIcon" /> - <Spinner - android:id="@+id/del_key_spinner" + <TextView + android:id="@+id/postlogin_title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:entries="@array/list_delkey" - android:entryValues="@array/list_delkey_values" + android:text="@string/hostpref_postlogin_title" + style="@style/ListItemFirstLineText.WithIcon" /> - </LinearLayout> - - <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:id="@+id/postlogin_summary" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/hostpref_encoding_title" - android:textSize="12sp" + android:text="@string/hostpref_postlogin_summary" + android:layout_below="@id/postlogin_title" + android:layout_alignParentBottom="false" + android:paddingBottom="2dp" + style="@style/ListItemSecondLineText.WithIcon" /> - <Spinner - android:id="@+id/encoding_spinner" - android:layout_width="wrap_content" + <EditText + android:id="@+id/post_login_automation_field" android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_marginLeft="72dp" + android:layout_marginStart="72dp" + android:layout_below="@id/postlogin_summary" + android:inputType="textMultiLine" + android:lines="8" + android:minLines="2" /> - </LinearLayout> + + </RelativeLayout> </LinearLayout> diff --git a/app/src/main/res/values-v11/styles.xml b/app/src/main/res/values-v11/styles.xml index 79f9633..37c3f6e 100644 --- a/app/src/main/res/values-v11/styles.xml +++ b/app/src/main/res/values-v11/styles.xml @@ -25,16 +25,23 @@ </style> <style name="ListItemFirstLineText" parent="TextAppearance.AppCompat"> + <item name="android:layout_alignParentTop">true</item> <item name="android:textColor">?android:textColorPrimary</item> <item name="android:textSize">16sp</item> + <item name="android:paddingTop">20dp</item> + <item name="android:layout_alignParentLeft">true</item> </style> <style name="ListItemSecondLineText" parent="TextAppearance.AppCompat"> + <item name="android:layout_alignParentBottom">true</item> <item name="android:textColor">?android:textColorSecondary</item> <item name="android:textSize">14sp</item> + <item name="android:paddingBottom">20dp</item> + <item name="android:layout_alignParentLeft">true</item> </style> - <style name="SelectableItem"> - <item name="android:background">?android:attr/selectableItemBackground</item> - </style> + <style name="SelectableItem"> + <item name="android:background">?android:attr/selectableItemBackground</item> + </style> + </resources> 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/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> |