Themes: Expose hardcoded layout and styles colors
Exposed text and background colors for themes to be compatible with themeable
google dialer. Split PeopleTheme in styles.
Change-Id: I4ca0347470333508e399bfae7ed5291a1a704410
diff --git a/overlay/common/packages/apps/Contacts/res/layout/confirm_add_detail_activity.xml b/overlay/common/packages/apps/Contacts/res/layout/confirm_add_detail_activity.xml
new file mode 100644
index 0000000..105a410
--- /dev/null
+++ b/overlay/common/packages/apps/Contacts/res/layout/confirm_add_detail_activity.xml
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ 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.
+-->
+
+<!-- Layout for confirming the addition of a piece of information to an existing contact. -->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/root_view"
+ android:orientation="vertical"
+ android:visibility="gone"
+ style="@style/ConfirmAddDetailViewStyle">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp"
+ android:paddingTop="18dp"
+ android:textSize="20dip"
+ android:textStyle="bold"
+ android:textColor="@android:color/black"
+ android:text="@string/activity_title_confirm_add_detail"/>
+
+ <!--
+ The header contains the contact photo, name, a link to the contact card, and
+ possibly an extra data field to disambiguate contacts with the same name.
+ -->
+ <RelativeLayout
+ style="@style/ConfirmAddDetailHeaderViewStyle">
+
+ <ImageView
+ android:id="@+id/photo"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerCrop"/>
+
+ <View
+ android:id="@+id/photo_text_bar"
+ android:layout_width="0dip"
+ android:layout_height="42dip"
+ android:layout_alignBottom="@id/photo"
+ android:layout_alignLeft="@id/photo"
+ android:layout_alignRight="@id/photo"
+ android:layout_alignStart="@id/photo"
+ android:layout_alignEnd="@id/photo"
+ android:background="@color/photo_text_bar_bg" />
+
+ <ImageButton
+ android:id="@+id/open_details_button"
+ android:src="@drawable/ic_contacts_holo_dark"
+ android:background="?android:attr/selectableItemBackground"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginRight="16dip"
+ android:layout_marginEnd="16dip"
+ android:layout_marginBottom="5dip"
+ android:layout_alignBottom="@id/photo_text_bar"
+ android:layout_alignRight="@id/photo_text_bar"
+ android:layout_alignEnd="@id/photo_text_bar" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="42dip"
+ android:orientation="vertical"
+ android:layout_alignBottom="@id/photo"
+ android:layout_alignLeft="@id/photo"
+ android:layout_alignStart="@id/photo"
+ android:layout_toLeftOf="@id/open_details_button"
+ android:layout_toStartOf="@id/open_details_button"
+ android:paddingLeft="8dip"
+ android:paddingRight="8dip"
+ android:paddingStart="8dip"
+ android:paddingEnd="8dip">
+
+ <TextView
+ android:id="@+id/name"
+ android:layout_width="wrap_content"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ android:paddingLeft="8dip"
+ android:paddingStart="8dip"
+ android:gravity="center_vertical"
+ android:textColor="@color/text_color_white"
+ android:textSize="16sp"
+ android:singleLine="true" />
+
+ <TextView
+ android:id="@+id/extra_info"
+ android:layout_width="wrap_content"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ android:paddingLeft="8dip"
+ android:paddingStart="8dip"
+ android:gravity="center_vertical"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/text_color_white"
+ android:singleLine="true"
+ android:paddingBottom="4dip"
+ android:visibility="gone" />
+
+ </LinearLayout>
+
+ <View
+ android:id="@+id/open_details_push_layer"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?android:attr/selectableItemBackground" />
+
+ </RelativeLayout>
+
+ <!-- Message that gets displayed if the contact is read-only (instead of showing the editor) -->
+ <TextView android:id="@+id/read_only_warning"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="60dip"
+ android:visibility="gone"
+ android:padding="15dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"/>
+
+ <!-- Container for a single detail field editor when the contact is not read-only -->
+ <FrameLayout
+ android:id="@+id/editor_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="60dip"
+ android:layout_marginTop="4dip"
+ android:layout_marginRight="15dip"
+ android:layout_marginEnd="15dip"/>
+
+ <View
+ android:id="@+id/divider"
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:background="@color/secondary_header_separator_color"/>
+
+ <!-- Action buttons -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ style="?android:attr/buttonBarStyle">
+
+ <Button
+ android:id="@+id/btn_cancel"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@android:string/cancel" />
+
+ <Button
+ android:id="@+id/btn_done"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@android:string/ok" />
+
+ </LinearLayout>
+
+</LinearLayout>
diff --git a/overlay/common/packages/apps/Contacts/res/layout/editor_account_header.xml b/overlay/common/packages/apps/Contacts/res/layout/editor_account_header.xml
new file mode 100644
index 0000000..cf1fc40
--- /dev/null
+++ b/overlay/common/packages/apps/Contacts/res/layout/editor_account_header.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ 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.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/account_container"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:minHeight="48dip"
+ android:background="@color/editor_account_header_bg"
+ android:orientation="horizontal"
+ android:paddingTop="8dip"
+ android:paddingBottom="8dip"
+ android:gravity="center_vertical"
+ android:paddingLeft="@dimen/account_container_left_padding"
+ android:paddingRight="28dip"
+ android:paddingStart="@dimen/account_container_left_padding"
+ android:paddingEnd="28dip">
+
+ <LinearLayout
+ android:id="@+id/account"
+ android:layout_height="wrap_content"
+ android:layout_width="0dip"
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:background="?android:attr/selectableItemBackground">
+
+ <TextView
+ android:id="@+id/account_type"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:singleLine="true"
+ android:textColor="@color/primary_text_color"
+ android:ellipsize="end" />
+
+ <TextView
+ android:id="@+id/account_name"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/primary_text_color"
+ android:singleLine="true"
+ android:ellipsize="end" />
+
+ </LinearLayout>
+
+ <FrameLayout
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent">
+
+ <ImageView
+ android:id="@+id/account_icon"
+ android:layout_width="32dip"
+ android:layout_height="32dip"
+ android:layout_gravity="center_vertical" />
+
+ </FrameLayout>
+
+</LinearLayout>
diff --git a/overlay/common/packages/apps/Contacts/res/values/projekt_colors.xml b/overlay/common/packages/apps/Contacts/res/values/projekt_colors.xml
new file mode 100644
index 0000000..d2ae4f8
--- /dev/null
+++ b/overlay/common/packages/apps/Contacts/res/values/projekt_colors.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2016 Projekt Substratum
+
+ 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>
+ <color name="photo_text_bar_bg">#7F000000</color>
+ <color name="text_color_white">@android:color/white</color>
+ <color name="editor_account_header_bg">#EEEEEE</color>
+ <color name="list_item_name_text_color">#ff212121</color>
+ <color name="white">@android:color/white</color>
+ <color name="contacts_action_bar_text_color_hint">#CCCCCC</color>
+ <color name="contacts_action_bar_text_color">@android:color/black</color>
+ <color name="section_divider_background_color">#7e7e87</color>
+ <color name="edit_kind_text_appearance_text_color">#363636</color>
+ <color name="account_type_name_text_color">#363636</color>
+</resources>
diff --git a/overlay/common/packages/apps/Contacts/res/values/styles.xml b/overlay/common/packages/apps/Contacts/res/values/styles.xml
new file mode 100644
index 0000000..b34fa12
--- /dev/null
+++ b/overlay/common/packages/apps/Contacts/res/values/styles.xml
@@ -0,0 +1,357 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ 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>
+
+ <style name="DetailActivityTheme" parent="@android:style/Theme.Holo.Light">
+ <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
+ <item name="android:homeAsUpIndicator">@drawable/ic_menu_back</item>
+ <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflow</item>
+ <item name="android:actionBarItemBackground">@drawable/action_bar_item_background</item>
+ <item name="android:actionBarWidgetTheme">@style/ContactsActionBarTheme</item>
+ <item name="android:textColorPrimary">@color/primary_text_color</item>
+ <item name="android:textColorSecondary">@color/secondary_text_color</item>
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ </style>
+
+ <style name="EditorActivityTheme" parent="@style/PeopleTheme">
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ <item name="android:actionBarStyle">@style/EditorActionBarStyle</item>
+ <item name="android:colorButtonNormal">@color/background_primary</item>
+ </style>
+
+ <style name="Theme">
+ </style>
+
+ <style name="Theme.QuickContact" parent="@style/PeopleTheme">
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:colorBackgroundCacheHint">@null</item>
+ <item name="android:windowFrame">@null</item>
+ <item name="android:windowContentOverlay">@null</item>
+ <item name="android:windowAnimationStyle">@null</item>
+ <item name="android:windowIsFloating">false</item>
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowNoTitle">true</item>
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ <!-- We need to use a light ripple behind ActionBar items in order for them to
+ be visible when using some of the darker ActionBar tints -->
+ <item name="android:actionBarItemBackground">@drawable/item_background_material_borderless_dark</item>
+ </style>
+
+ <style name="PeopleTheme1" parent="@android:style/Theme.Material.Light">
+ <item name="android:colorPrimary">@color/primary_color</item>
+ <item name="android:colorPrimaryDark">@color/primary_color_dark</item>
+ <item name="android:colorAccent">@color/primary_color</item>
+ </style>
+
+ <style name="PeopleTheme" parent="@style/PeopleTheme1">
+ <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
+ <!-- Style for the tab bar (for the divider between tabs) -->
+ <item name="android:actionBarTabBarStyle">@style/ContactsActionBarTabBarStyle</item>
+ <!-- Style for the tab bar text (for text on tabs) -->
+ <item name="android:actionBarTabTextStyle">@style/ContactsActionBarTabTextStyle</item>
+ <!-- Drawable for the back button -->
+ <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
+ <!-- Style for the overflow button in the actionbar. -->
+ <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflowQP</item>
+ <item name="android:actionModeCloseDrawable">@drawable/ic_close_lt</item>
+ <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
+ <item name="android:fastScrollTrackDrawable">@null</item>
+ <item name="android:textColorPrimary">@color/primary_text_color</item>
+ <item name="android:textColorSecondary">@color/secondary_text_color</item>
+ <item name="android:icon">@android:color/transparent</item>
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ <item name="android:windowBackground">@color/background_primary</item>
+ <item name="android:alertDialogTheme">@style/ContactsAlertDialogTheme</item>
+ <item name="list_item_height">?android:attr/listPreferredItemHeight</item>
+ <item name="activated_background">@drawable/list_item_activated_background</item>
+ <item name="section_header_background">@drawable/list_title_holo</item>
+ <item name="list_section_header_height">24dip</item>
+ <item name="list_item_padding_top">
+ @dimen/contact_browser_list_item_padding_top_or_bottom
+ </item>
+ <item name="list_item_padding_right">32dp</item>
+ <item name="list_item_padding_bottom">
+ @dimen/contact_browser_list_item_padding_top_or_bottom
+ </item>
+ <item name="list_item_padding_left">16dip</item>
+ <item name="list_item_gap_between_image_and_text">
+ @dimen/contact_browser_list_item_gap_between_image_and_text
+ </item>
+ <item name="list_item_gap_between_label_and_data">5dip</item>
+ <item name="list_item_presence_icon_margin">4dip</item>
+ <item name="list_item_presence_icon_size">16dip</item>
+ <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
+ <item name="list_item_profile_photo_size">70dip</item>
+ <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
+ <item name="list_item_background_color">@color/list_item_pinned_header_color</item>
+ <item name="list_item_header_text_color">@color/people_app_theme_color</item>
+ <item name="list_item_header_text_size">14sp</item>
+ <item name="list_item_header_height">30dip</item>
+ <item name="list_item_data_width_weight">5</item>
+ <item name="list_item_label_width_weight">3</item>
+ <item name="list_item_header_text_indent">8dip</item>
+ <item name="contact_browser_list_padding_left">0dip</item>
+ <item name="contact_browser_list_padding_right">0dip</item>
+ <item name="contact_browser_background">@color/background_primary</item>
+ <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
+ <item name="list_item_name_text_color">@color/list_item_name_text_color</item>
+ <item name="list_item_name_text_size">16.0sp</item>
+ <!-- Favorites -->
+ <item name="favorites_padding_bottom">0dip</item>
+ </style>
+
+ <style name="ContactsActionBarOverflow" parent="@android:style/Widget.Holo.ActionButton.Overflow">
+ <item name="android:src">@drawable/ic_overflow_menu</item>
+ </style>
+
+ <!-- Use the non-light style so that the up button & icons aren't black. If we use the
+ Light style, then it is impossible to tint the homeAsUp icon anything other than black -->
+ <style name="ContactsActionBarStyle" parent="@android:style/Widget.Material.ActionBar">
+ <item name="android:background">@color/actionbar_background_color</item>
+ <item name="android:titleTextStyle">@style/ContactsActionBarTitleText</item>
+ <item name="android:backgroundStacked">@color/actionbar_background_color</item>
+ <!-- Empty icon -->
+ <item name="android:icon">@android:color/transparent</item>
+ </style>
+
+ <style name="EditorActionBarStyle" parent="@style/ContactsActionBarStyle">
+ <item name="android:contentInsetStart">72dp</item>
+ </style>
+
+ <!-- When this style was added, android:toolbarStyle was private. Therefore, this style
+ must be directly applied to every toolbar -->
+ <style name="ContactsToolbarStyle" parent="@android:style/Widget.Toolbar">
+ <item name="android:titleTextAppearance">@style/ContactsActionBarTitleText</item>
+ </style>
+
+ <style name="ContactsPickerActionBarStyle" parent="@style/ContactsActionBarStyle">
+ <!-- when first loading, don't show title or up button -->
+ <item name="android:displayOptions"></item>
+ </style>
+
+ <style name="ContactPickerSearchTheme" parent="@style/PeopleTheme">
+ <item name="android:textColorPrimary">@color/text_color_white</item>
+ <item name="android:textColorHint">?android:textColorHintInverse</item>
+ <item name="android:colorControlActivated">?android:textColorHintInverse</item>
+ <item name="android:colorControlNormal">@color/white</item>
+ </style>
+
+ <!-- Text in the action bar at the top of the screen -->
+ <style name="ContactsActionBarTitleText"
+ parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
+ <item name="android:textColor">@color/actionbar_text_color</item>
+ </style>
+
+ <!-- Styling for the tab bar; handles styling of the divider line. -->
+ <style name="ContactsActionBarTabBarStyle"
+ parent="@android:style/Widget.Material.ActionBar.TabBar">
+ <item name="android:showDividers">none</item>
+ </style>
+
+ <!-- Text style for tabs. -->
+ <style name="ContactsActionBarTabTextStyle"
+ parent="android:style/Widget.Material.Light.ActionBar.TabText">
+ <item name="android:textColor">@color/tab_text_color</item>
+ <item name="android:textSize">@dimen/tab_text_size</item>
+ <item name="android:fontFamily">@string/tab_font_family</item>
+ <item name="android:elevation">0dp</item>
+ <item name="android:textStyle">bold</item>
+ </style>
+
+ <!-- Action bar overflow menu icon. -->
+ <style name="ContactsActionBarOverflowQP"
+ parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
+ <item name="android:src">@drawable/ic_more_vert</item>
+ <item name="android:tint">@color/action_bar_button_text_color</item>
+ </style>
+
+ <style name="ContactsActionBarDropDownStyle" parent="@android:style/Widget.Holo.Light.Spinner">
+ <item name="android:background">@drawable/ab_dropdown_navigation_item_background</item>
+ </style>
+
+ <style name="ContactsActionBarTheme" parent="@android:style/Theme.Holo.Light">
+ <item name="android:textColorHint">@color/contacts_action_bar_text_color_hint</item>
+ <item name="android:textColor">@color/contacts_action_bar_text_color</item>
+ <item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item>
+ <item name="android:dropDownListViewStyle">@style/ListViewDropdownStyle</item>
+ </style>
+
+ <style name="ListViewDropdownStyle" parent="@android:style/Widget.ListView.DropDown">
+ <item name="android:listSelector">?android:attr/listChoiceBackgroundIndicator</item>
+ </style>
+
+ <style name="ContactPickerTheme" parent="@style/PeopleTheme" >
+ <item name="android:actionBarStyle">@style/ContactsPickerActionBarStyle</item>
+ </style>
+
+ <style name="ContactPickerLayout" parent="ContactPickerTheme">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">match_parent</item>
+ </style>
+
+ <style name="ContactsPreferencesTheme" parent="@style/PeopleTheme">
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ </style>
+
+ <style name="ContactListFilterTheme" parent="@style/PeopleTheme">
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ </style>
+
+ <style name="NonPhoneActivityTheme" parent="@android:Theme.Translucent.NoTitleBar">
+ </style>
+
+ <style name="NonPhoneDialogTheme" parent="@android:Theme.Material.Light.Dialog">
+ </style>
+
+ <style name="ConfirmAddDetailDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.MinWidth">
+ <item name="android:windowCloseOnTouchOutside">true</item>
+ </style>
+
+ <style name="ContactEditorAccountsChangedActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar.MinWidth">
+ <item name="android:windowCloseOnTouchOutside">true</item>
+ <item name="android:textColorPrimary">@color/primary_text_color</item>
+ <item name="android:textColorSecondary">@color/secondary_text_color</item>
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ <item name="android:colorAccent">@color/primary_color</item>
+ </style>
+
+ <style name="SectionDivider">
+ <item name="android:background">@color/section_divider_background_color</item>
+ <item name="android:layout_height">1dip</item>
+ <item name="android:layout_width">match_parent</item>
+ </style>
+
+ <style name="ConfirmAddDetailViewStyle">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">wrap_content</item>
+ </style>
+
+ <style name="ConfirmAddDetailHeaderViewStyle">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">150dip</item>
+ </style>
+
+ <style name="SelectableItem" parent="@android:style/Theme.Material.Light">
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ </style>
+
+ <style name="QuickContactListItemTextWrapperStyle">
+ <item name="android:layout_width">0dip</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_weight">1</item>
+ <item name="android:paddingLeft">16dip</item>
+ <item name="android:paddingRight">16dip</item>
+ <item name="android:paddingStart">16dip</item>
+ <item name="android:paddingEnd">16dip</item>
+ <item name="android:gravity">center_vertical</item>
+ <item name="android:orientation">vertical</item>
+ </style>
+
+ <style name="Theme.PhotoSelector" parent="@android:style/Theme.Holo.Light">
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:windowFrame">@null</item>
+ <item name="android:windowContentOverlay">@null</item>
+ <item name="android:windowAnimationStyle">@null</item>
+ <item name="android:backgroundDimEnabled">false</item>
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowNoTitle">true</item>
+ </style>
+
+ <style name="GroupMembershipSizeTextAppearance" parent="@android:style/TextAppearance.Small"/>
+
+ <style name="PeopleNavigationDropDownTextAppearance">
+ <item name="android:textColor">@color/primary_text_color</item>
+ <item name="android:textSize">18sp</item>
+ </style>
+
+ <style name="PeopleNavigationDropDownHeaderTextAppearance">
+ <item name="android:textColor">@color/primary_text_color</item>
+ <item name="android:textSize">18sp</item>
+ </style>
+
+ <style name="ExpandingEntryCardStyle">
+ <item name="android:elevation">@dimen/expanding_entry_card_elevation</item>
+ <item name="android:background">@color/expanding_entry_card_background_color</item>
+ <item name="android:layout_marginBottom">@dimen/expanding_entry_card_marginBottom</item>
+ <item name="android:layout_marginEnd">@dimen/expanding_entry_card_marginStartEnd</item>
+ <item name="android:layout_marginStart">@dimen/expanding_entry_card_marginStartEnd</item>
+ <item name="android:orientation">vertical</item>
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">wrap_content</item>
+ </style>
+
+ <style name="SpinnerButtonStyle" parent="@android:style/Widget.Material.Spinner.Underlined">
+ <!-- When applying the spinner style to a Button we need to disable the shadow animation
+ on the button since the spinner background is transparent. Otherwise the spinner-button
+ will look ridiculous. -->
+ <item name="android:stateListAnimator">@null</item>
+ <!-- We want our spinner's to use the same gravity as an EditText, so that they look
+ visually consistent with other controls in our forms -->
+ <item name="android:gravity">start|center_vertical</item>
+ </style>
+
+ <style name="EditKindSeparatorTextViewStyle" parent="ContactListSeparatorTextViewStyle">
+ <item name="android:textAppearance">@style/EditKindTextAppearanceStyle</item>
+ </style>
+
+ <style name="EditKindTextAppearanceStyle" parent="@android:style/TextAppearance.Small">
+ <item name="android:textSize">14sp</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:textAllCaps">true</item>
+ <item name="android:textColor">@color/edit_kind_text_appearance_text_color</item>
+ <item name="android:fontFamily">sans-serif</item>
+ </style>
+
+ <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
+ since the Alert dialog is private. They are identical anyway. -->
+ <style name="ContactsAlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
+ <item name="android:colorAccent">@color/primary_color</item>
+ </style>
+
+ <style name="EditKindIconStyle">
+ <item name="android:layout_width">24dp</item>
+ <item name="android:layout_height">24dp</item>
+ <item name="android:tint">@color/editor_icon_color</item>
+ <item name="android:layout_marginStart">16dp</item>
+ <!-- We want 32dp of padding between these icon's and EditText's. Since EditText's have
+ 4dp of starting padding built in, we set this as 28dp. -->
+ <item name="android:layout_marginEnd">28dp</item>
+ <item name="android:layout_marginTop">@dimen/editor_kind_icon_top_margin</item>
+ </style>
+
+ <style name="EditSelectorIconStyle">
+ <item name="android:layout_width">24dp</item>
+ <item name="android:layout_height">24dp</item>
+ <item name="android:layout_marginStart">16dp</item>
+ <!-- We want 32dp of padding between these icon's and EditText's. Since EditText's have
+ 4dp of starting padding built in, we set this as 28dp. -->
+ <item name="android:layout_marginEnd">28dp</item>
+ <item name="android:layout_marginTop">@dimen/editor_kind_icon_top_margin</item>
+ </style>
+
+ <style name="AccountTypeIconStyle">
+ <item name="android:layout_width">12dp</item>
+ <item name="android:layout_height">12dp</item>
+ <item name="android:layout_marginStart">4dp</item>
+ <item name="android:layout_marginEnd">4dp</item>
+ </style>
+
+ <style name="AccountTypeNameStyle">
+ <item name="android:textSize">10sp</item>
+ <item name="android:textColor">@color/account_type_name_text_color</item>
+ <item name="android:fontFamily">sans-serif</item>
+ </style>
+</resources>