1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

make the folders button in the account list more like a button. backcompat for pre-sdk-11 styles

This commit is contained in:
Jesse Vincent 2013-06-30 16:29:37 -04:00
parent 9bb995006a
commit 65777cb55d
4 changed files with 38 additions and 10 deletions

View File

@ -16,15 +16,6 @@
android:layout_marginLeft="8dip"
android:layout_marginRight="6dip" />
<ImageButton
android:id="@+id/folders"
android:gravity="center_vertical"
android:focusable="false"
android:layout_marginRight="3dip"
android:background="?attr/iconFolder"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -54,5 +45,33 @@
</LinearLayout>
<include layout="@layout/accounts_folders_icons" />
<LinearLayout
android:id="@+id/folder_button_wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginLeft="4dip"
android:layout_marginRight="4dip"
android:background="?attr/compatDividerVertical"
android:layout_alignParentTop="true"/>
<ImageButton
android:id="@+id/folders"
android:gravity="center_vertical"
android:focusable="false"
android:layout_marginRight="3dip"
android:src="?attr/iconFolder"
android:background="?attr/compatSelectableItemBackground"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:padding="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
/>
</LinearLayout>
</LinearLayout>

View File

@ -5,6 +5,8 @@
<style name="Theme.K9.Dark" parent="Theme.K9.Dark.Base">
<item name="composerBackgroundColor">@android:color/background_dark</item>
<item name="compatDividerVertical">@android:attr/dividerVertical</item>
<item name="compatSelectableItemBackground">?android:attr/selectableItemBackground</item>
</style>
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
@ -13,6 +15,8 @@
<style name="Theme.K9.Dialog.Dark" parent="Theme.K9.Dark">
<item name="backgroundColorChooseAccountHeader">#404040</item>
<item name="compatDividerVertical">@android:attr/dividerVertical</item>
<item name="compatSelectableItemBackground">?android:attr/selectableItemBackground</item>
</style>
</resources>

View File

@ -48,7 +48,8 @@
<attr name="messageViewAttachmentBackground" format="reference"/>
<attr name="messageComposeAddContactImage" format="reference"/>
<attr name="composerBackgroundColor" format="color"/>
<attr name="compatDividerVertical" format="reference"/>
<attr name="compatSelectableItemBackground" format="reference"/>
</declare-styleable>
</resources>

View File

@ -48,6 +48,8 @@
<item name="messageViewHeaderBackgroundColor">#ffffffff</item>
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_light</item>
<item name="compatDividerVertical">?attr/messageListDividerColor</item>
<item name="compatSelectableItemBackground">@android:color/transparent</item>
</style>
<style name="Theme.K9.Dark.Base" parent="Theme.Sherlock">
@ -95,6 +97,8 @@
<item name="messageViewHeaderBackgroundColor">#000000</item>
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item>
<item name="compatDividerVertical">?attr/messageListDividerColor</item>
<item name="compatSelectableItemBackground">@android:color/transparent</item>
</style>
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">