OsmAnd/eclipse-compile/appcompat/res/values/styles_base.xml

473 lines
23 KiB
XML
Raw Normal View History

2014-12-29 16:52:20 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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.
-->
2015-05-05 02:19:41 +02:00
<resources xmlns:android="http://schemas.android.com/apk/res/android">
2014-12-29 16:52:20 +01:00
<!-- Like in themes_base.xml, the namespace "Base.AppCompat.*" is used to
define base styles for the platform version. The "*.AppCompat"
variants are for direct use or use as parent styles by the app. -->
<eat-comment/>
<style name="Base.Widget.AppCompat.ActionBar" parent="">
<item name="displayOptions">showTitle</item>
<item name="divider">?attr/dividerVertical</item>
<item name="height">?attr/actionBarSize</item>
<item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Title</item>
<item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle</item>
<item name="background">@null</item>
<item name="backgroundStacked">@null</item>
<item name="backgroundSplit">@null</item>
<item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item>
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item>
<item name="android:gravity">center_vertical</item>
2015-05-03 14:56:07 +02:00
<item name="contentInsetStart">@dimen/abc_action_bar_content_inset_material</item>
<item name="contentInsetEnd">@dimen/abc_action_bar_content_inset_material</item>
2014-12-29 16:52:20 +01:00
<item name="elevation">8dp</item>
<item name="popupTheme">?attr/actionBarPopupTheme</item>
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar" parent="Base.Widget.AppCompat.ActionBar">
<item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item>
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.Light.ActionButton.Overflow</item>
</style>
<style name="Base.Widget.AppCompat.ActionBar.Solid">
<item name="background">?attr/colorPrimary</item>
<item name="backgroundStacked">?attr/colorPrimary</item>
<item name="backgroundSplit">?attr/colorPrimary</item>
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar.Solid">
<item name="background">?attr/colorPrimary</item>
<item name="backgroundStacked">?attr/colorPrimary</item>
<item name="backgroundSplit">?attr/colorPrimary</item>
</style>
<style name="Base.Widget.AppCompat.ActionButton" parent="">
<item name="android:background">?attr/actionBarItemBackground</item>
<item name="android:paddingLeft">12dip</item>
<item name="android:paddingRight">12dip</item>
<item name="android:minWidth">@dimen/abc_action_button_min_width_material</item>
<item name="android:minHeight">@dimen/abc_action_button_min_height_material</item>
<item name="android:scaleType">center</item>
<item name="android:gravity">center</item>
<item name="android:maxLines">2</item>
<item name="textAllCaps">@bool/abc_config_actionMenuItemAllCaps</item>
</style>
<style name="Base.Widget.AppCompat.ActionButton.CloseMode">
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
2015-05-03 14:56:07 +02:00
<item name="android:minWidth">56dp</item>
2014-12-29 16:52:20 +01:00
</style>
<style name="Base.Widget.AppCompat.ActionButton.Overflow">
<item name="android:src">@drawable/abc_ic_menu_moreoverflow_mtrl_alpha</item>
<item name="android:background">?attr/actionBarItemBackground</item>
<item name="android:contentDescription">@string/abc_action_menu_overflow_description</item>
<item name="android:minWidth">@dimen/abc_action_button_min_width_overflow_material</item>
<item name="android:minHeight">@dimen/abc_action_button_min_height_material</item>
</style>
<style name="Base.Widget.AppCompat.ActionBar.TabBar" parent="">
<item name="divider">?attr/actionBarDivider</item>
<item name="showDividers">middle</item>
<item name="dividerPadding">8dip</item>
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar.TabBar"
parent="Base.Widget.AppCompat.ActionBar.TabBar">
</style>
<style name="Base.Widget.AppCompat.ActionBar.TabView" parent="">
<item name="android:background">@drawable/abc_tab_indicator_material</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
<item name="android:layout_width">0dip</item>
<item name="android:layout_weight">1</item>
<item name="android:minWidth">80dip</item>
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar.TabView" parent="Base.Widget.AppCompat.ActionBar.TabView">
<item name="android:background">@drawable/abc_tab_indicator_material</item>
</style>
<style name="Base.Widget.AppCompat.ActionBar.TabText" parent="">
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textSize">12sp</item>
<item name="android:textStyle">bold</item>
<item name="android:ellipsize">marquee</item>
<item name="android:maxLines">2</item>
<item name="android:maxWidth">180dp</item>
<item name="textAllCaps">true</item>
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar.TabText"
parent="Base.Widget.AppCompat.ActionBar.TabText">
</style>
<style name="Base.Widget.AppCompat.Light.ActionBar.TabText.Inverse"
parent="Base.Widget.AppCompat.Light.ActionBar.TabText">
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium.Inverse</item>
</style>
<style name="Base.Widget.AppCompat.ActionMode" parent="">
<item name="background">?attr/actionModeBackground</item>
<item name="backgroundSplit">?attr/actionModeSplitBackground</item>
<item name="height">?attr/actionBarSize</item>
<item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Title</item>
<item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle</item>
<item name="closeItemLayout">@layout/abc_action_mode_close_item_material</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Title" parent="TextAppearance.AppCompat.Title">
<item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Subtitle" parent="TextAppearance.AppCompat.Subhead">
<item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Menu" parent="android:TextAppearance.Small">
<item name="android:textSize">12sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">?attr/actionMenuTextColor</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title" parent="TextAppearance.AppCompat.Title">
<item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle" parent="TextAppearance.AppCompat.Subhead">
<item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse" parent="TextAppearance.AppCompat.Title.Inverse">
<item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse" parent="TextAppearance.AppCompat.Subhead.Inverse">
<item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item>
</style>
<style name="Base.Widget.AppCompat.ProgressBar.Horizontal" parent="android:Widget.ProgressBar.Horizontal">
</style>
<style name="Base.Widget.AppCompat.ProgressBar" parent="android:Widget.ProgressBar">
<item name="android:minWidth">@dimen/abc_action_bar_progress_bar_size</item>
<item name="android:maxWidth">@dimen/abc_action_bar_progress_bar_size</item>
<item name="android:minHeight">@dimen/abc_action_bar_progress_bar_size</item>
<item name="android:maxHeight">@dimen/abc_action_bar_progress_bar_size</item>
</style>
<!-- Spinner Widgets -->
<style name="Base.Widget.AppCompat.Spinner" parent="android:Widget.Spinner">
<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:dropDownVerticalOffset">0dip</item>
</style>
2015-05-03 14:56:07 +02:00
<style name="Base.Widget.AppCompat.Spinner.Underlined">
<item name="android:background">@drawable/abc_spinner_textfield_background_material</item>
</style>
2014-12-29 16:52:20 +01:00
<style name="Base.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="android:Widget">
<item name="spinnerMode">dropdown</item>
<item name="android:clickable">true</item>
<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:dropDownHorizontalOffset">0dip</item>
<item name="overlapAnchor">true</item>
<item name="android:dropDownWidth">wrap_content</item>
<item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
<item name="android:gravity">left|start|center_vertical</item>
<item name="disableChildrenWhenDisabled">true</item>
</style>
<style name="Base.Widget.AppCompat.DropDownItem.Spinner" parent="">
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.DropDownItem</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
<item name="android:gravity">center_vertical</item>
</style>
<style name="Base.Widget.AppCompat.ListView.DropDown" parent="android:Widget.ListView">
<item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:divider">@null</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.DropDownItem"
parent="android:TextAppearance.Small">
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
</style>
<style name="Base.TextAppearance.Widget.AppCompat.ExpandedMenu.Item"
parent="android:TextAppearance.Medium">
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
</style>
<style name="Base.Widget.AppCompat.ListView.Menu" parent="android:Widget.ListView.Menu">
<item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:divider">?attr/dividerHorizontal</item>
</style>
<style name="Base.Widget.AppCompat.ListPopupWindow" parent="">
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:dropDownHorizontalOffset">0dip</item>
<item name="android:dropDownWidth">wrap_content</item>
</style>
<style name="Base.Widget.AppCompat.PopupMenu.Overflow">
<item name="overlapAnchor">true</item>
<item name="android:dropDownHorizontalOffset">-4dip</item>
</style>
<style name="Base.Widget.AppCompat.Light.PopupMenu.Overflow">
<item name="overlapAnchor">true</item>
<item name="android:dropDownHorizontalOffset">-4dip</item>
</style>
<style name="Base.Widget.AppCompat.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow">
</style>
<style name="Base.Widget.AppCompat.Light.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow">
</style>
<style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu">
</style>
<style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu">
</style>
<style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu">
</style>
<style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu">
</style>
<style name="Base.TextAppearance.AppCompat.SearchResult" parent="">
<item name="android:textStyle">normal</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:textColorHint">?android:textColorHint</item>
</style>
<style name="Base.TextAppearance.AppCompat.SearchResult.Title">
<item name="android:textSize">18sp</item>
</style>
<style name="Base.TextAppearance.AppCompat.SearchResult.Subtitle">
<item name="android:textSize">14sp</item>
<item name="android:textColor">?android:textColorSecondary</item>
</style>
<style name="Base.Widget.AppCompat.AutoCompleteTextView" parent="android:Widget.AutoCompleteTextView">
2015-05-03 14:56:07 +02:00
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
2014-12-29 16:52:20 +01:00
<item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item>
2015-05-03 14:56:07 +02:00
<item name="android:background">?attr/editTextBackground</item>
2014-12-29 16:52:20 +01:00
<item name="android:textColor">?attr/editTextColor</item>
2015-05-03 14:56:07 +02:00
<item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
2014-12-29 16:52:20 +01:00
</style>
<style name="Base.Widget.AppCompat.ActivityChooserView" parent="">
<item name="android:gravity">center</item>
2015-05-03 14:56:07 +02:00
<item name="android:background">@drawable/abc_ab_share_pack_mtrl_alpha</item>
2014-12-29 16:52:20 +01:00
<item name="divider">?attr/dividerVertical</item>
<item name="showDividers">middle</item>
<item name="dividerPadding">6dip</item>
</style>
<style name="Base.Widget.AppCompat.PopupWindow" parent="android:Widget.PopupWindow">
</style>
<style name="Base.Widget.AppCompat.Toolbar" parent="android:Widget">
<item name="titleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Title</item>
<item name="subtitleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Subtitle</item>
<item name="android:minHeight">?attr/actionBarSize</item>
<item name="titleMargins">4dp</item>
<item name="maxButtonHeight">56dp</item>
<item name="collapseIcon">?attr/homeAsUpIndicator</item>
<item name="collapseContentDescription">@string/abc_toolbar_collapse_description</item>
<item name="contentInsetStart">16dp</item>
</style>
<style name="Base.Widget.AppCompat.Toolbar.Button.Navigation" parent="android:Widget">
<item name="android:minWidth">56dp</item>
<item name="android:scaleType">center</item>
<item name="android:background">?attr/selectableItemBackground</item>
</style>
<style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Title"
parent="TextAppearance.AppCompat.Widget.ActionBar.Title">
</style>
<style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Subtitle"
parent="TextAppearance.AppCompat.Widget.ActionBar.Subtitle">
</style>
<style name="Base.Widget.AppCompat.SearchView" parent="android:Widget">
<item name="layout">@layout/abc_search_view</item>
<item name="queryBackground">@drawable/abc_textfield_search_material</item>
<item name="submitBackground">@drawable/abc_textfield_search_material</item>
<item name="closeIcon">@drawable/abc_ic_clear_mtrl_alpha</item>
<item name="searchIcon">@drawable/abc_ic_search_api_mtrl_alpha</item>
2015-05-03 14:56:07 +02:00
<item name="searchHintIcon">@drawable/abc_ic_search_api_mtrl_alpha</item>
2014-12-29 16:52:20 +01:00
<item name="goIcon">@drawable/abc_ic_go_search_api_mtrl_alpha</item>
<item name="voiceIcon">@drawable/abc_ic_voice_search_api_mtrl_alpha</item>
<item name="commitIcon">@drawable/abc_ic_commit_search_api_mtrl_alpha</item>
<item name="suggestionRowLayout">@layout/abc_search_dropdown_item_icons_2line</item>
</style>
2015-05-03 14:56:07 +02:00
<style name="Base.Widget.AppCompat.SearchView.ActionBar">
<item name="queryBackground">@null</item>
<item name="submitBackground">@null</item>
<item name="searchHintIcon">@null</item>
<item name="queryHint">@string/abc_search_hint</item>
</style>
2014-12-29 16:52:20 +01:00
<style name="Base.Widget.AppCompat.EditText" parent="android:Widget.EditText">
<item name="android:background">?attr/editTextBackground</item>
<item name="android:textColor">?attr/editTextColor</item>
<item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
</style>
2015-05-03 14:56:07 +02:00
<!-- contains values used in all dpis -->
<style name="Base.Widget.AppCompat.DrawerArrowToggle.Common" parent="">
2014-12-29 16:52:20 +01:00
<item name="color">?android:attr/textColorSecondary</item>
2015-05-03 14:56:07 +02:00
<item name="middleBarArrowSize">16dp</item>
<item name="spinBars">true</item>
2014-12-29 16:52:20 +01:00
<item name="thickness">2dp</item>
2015-05-03 14:56:07 +02:00
<item name="topBottomBarArrowSize">11.31dp</item>
</style>
<!-- contains values used in all dpis except hdpi and xxhdpi -->
<style name="Base.Widget.AppCompat.DrawerArrowToggle" parent="Base.Widget.AppCompat.DrawerArrowToggle.Common">
2014-12-29 16:52:20 +01:00
<item name="barSize">18dp</item>
<item name="gapBetweenBars">3dp</item>
<item name="drawableSize">24dp</item>
2015-05-03 14:56:07 +02:00
</style>
<style name="Base.Widget.AppCompat.CompoundButton.CheckBox" parent="android:Widget.CompoundButton.CheckBox">
<item name="android:button">?android:attr/listChoiceIndicatorMultiple</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
2015-05-05 02:19:41 +02:00
<item name="android:paddingLeft">@dimen/checkbox_padding</item>
<item name="android:paddingRight">@dimen/checkbox_padding</item>
2015-05-03 14:56:07 +02:00
</style>
<style name="Base.Widget.AppCompat.CompoundButton.RadioButton" parent="android:Widget.CompoundButton.RadioButton">
<item name="android:button">?android:attr/listChoiceIndicatorSingle</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
2014-12-29 16:52:20 +01:00
</style>
<style name="Base.Widget.AppCompat.CompoundButton.Switch" parent="android:Widget.CompoundButton">
<item name="track">@drawable/abc_switch_track_mtrl_alpha</item>
<item name="android:thumb">@drawable/abc_switch_thumb_material</item>
<item name="switchTextAppearance">@style/TextAppearance.AppCompat.Widget.Switch</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
<item name="showText">false</item>
2015-05-03 14:56:07 +02:00
<item name="android:padding">@dimen/abc_switch_padding</item>
2014-12-29 16:52:20 +01:00
</style>
<style name="Base.TextAppearance.AppCompat.Widget.Switch" parent="TextAppearance.AppCompat.Button" />
2015-05-03 14:56:07 +02:00
<style name="Base.Widget.AppCompat.RatingBar" parent="android:Widget.RatingBar">
<item name="android:progressDrawable">@drawable/abc_ratingbar_full_material</item>
<item name="android:indeterminateDrawable">@drawable/abc_ratingbar_full_material</item>
</style>
<!-- Bordered ink button -->
<style name="Base.Widget.AppCompat.Button" parent="android:Widget">
<item name="android:background">@drawable/abc_btn_default_mtrl_shape</item>
<item name="android:textAppearance">?android:attr/textAppearanceButton</item>
<item name="android:minHeight">48dip</item>
<item name="android:minWidth">88dip</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
<item name="android:gravity">center_vertical|center_horizontal</item>
</style>
<!-- Small bordered ink button -->
<style name="Base.Widget.AppCompat.Button.Small">
<item name="android:minHeight">48dip</item>
<item name="android:minWidth">48dip</item>
</style>
<!-- Borderless ink button -->
<style name="Base.Widget.AppCompat.Button.Borderless">
<item name="android:background">@drawable/abc_btn_borderless_material</item>
</style>
<!-- Colored borderless ink button -->
<style name="Base.Widget.AppCompat.Button.Borderless.Colored">
<item name="android:textColor">?attr/colorAccent</item>
</style>
<style name="Base.Widget.AppCompat.Button.ButtonBar.AlertDialog" parent="Widget.AppCompat.Button.Borderless.Colored">
<item name="android:minWidth">64dp</item>
<item name="android:maxLines">2</item>
<item name="android:minHeight">@dimen/abc_alert_dialog_button_bar_height</item>
</style>
<style name="Base.Widget.AppCompat.TextView.SpinnerItem" parent="android:Widget.TextView.SpinnerItem">
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
</style>
<style name="Base.TextAppearance.AppCompat.Widget.TextView.SpinnerItem" parent="TextAppearance.AppCompat.Menu" />
<style name="Base.DialogWindowTitleBackground.AppCompat" parent="android:Widget">
<item name="android:background">@null</item>
<item name="android:paddingLeft">?attr/dialogPreferredPadding</item>
<item name="android:paddingRight">?attr/dialogPreferredPadding</item>
<item name="android:paddingTop">@dimen/abc_dialog_padding_top_material</item>
</style>
<style name="Base.DialogWindowTitle.AppCompat" parent="android:Widget">
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Title</item>
</style>
<style name="Base.Animation.AppCompat.Dialog" parent="android:Animation">
<item name="android:windowEnterAnimation">@anim/abc_popup_enter</item>
<item name="android:windowExitAnimation">@anim/abc_popup_exit</item>
</style>
<style name="Base.Widget.AppCompat.ButtonBar" parent="android:Widget">
<item name="android:background">@null</item>
</style>
<style name="Base.Widget.AppCompat.ButtonBar.AlertDialog">
<item name="android:background">@null</item>
</style>
<style name="Base.Animation.AppCompat.DropDownUp" parent="android:Animation">
<item name="android:windowEnterAnimation">@anim/abc_grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@anim/abc_shrink_fade_out_from_bottom</item>
</style>
2014-12-29 16:52:20 +01:00
</resources>