android theme与level关系,Android Theme 属性详解

常用属性

@color/white

@color/white

@color/colorAccent

#00000000

true

true

true

true

true

#E91E63

true

@drawable/ic_launcher_background

false

#B0C4DE

#E6E6FA

#1C71A9

#FFFFFF

#C1C1C1

#FF7F50

#FF00FF

#FFD700

#1C71A9

singleTop

landscape

Theme继承关系

Base.V21.Theme.AppCompat

?android:attr/actionBarSize

?android:attr/actionBarDivider

@drawable/abc_action_bar_item_background_material

?android:attr/actionButtonStyle

?android:attr/actionModeBackground

?android:attr/actionModeCloseDrawable

?android:attr/actionOverflowButtonStyle

?android:attr/homeAsUpIndicator

?android:attr/listPreferredItemHeightSmall

?android:attr/textAppearanceLargePopupMenu

?android:attr/textAppearanceSmallPopupMenu

?android:attr/selectableItemBackground

?android:attr/selectableItemBackgroundBorderless

?android:borderlessButtonStyle

?android:attr/dividerHorizontal

?android:attr/dividerVertical

@drawable/abc_edit_text_material

?android:attr/editTextColor

?android:attr/listChoiceBackgroundIndicator

?android:attr/buttonStyle

?android:attr/buttonStyleSmall

?android:attr/checkboxStyle

?android:attr/checkedTextViewStyle

?android:attr/radioButtonStyle

?android:attr/ratingBarStyle

?android:attr/spinnerStyle

?attr/colorPrimary

?attr/colorPrimaryDark

?attr/colorAccent

?attr/colorControlNormal

?attr/colorControlActivated

?attr/colorControlHighlight

?attr/colorButtonNormal

Theme

文件路径:..\Sdk\platforms\android-28\data\res\values\themes.xml

06a3bbb7ce79

image.png

false

@color/bright_foreground_dark

@color/bright_foreground_dark_inverse

@color/background_dark

?attr/colorBackground

?attr/colorBackground

0.5

@dimen/primary_content_alpha_material_dark

@dimen/secondary_content_alpha_material_dark

0.6

@color/red

@style/TextAppearance

@style/TextAppearance.Inverse

@color/primary_text_dark

@color/primary_text_light

@color/primary_text_dark

@color/primary_text_dark_disable_only

@color/primary_text_light_disable_only

@color/primary_text_light_nodisable

@color/primary_text_dark_nodisable

@color/secondary_text_dark

@color/secondary_text_light

@color/secondary_text_dark

@color/secondary_text_dark_nodisable

@color/secondary_text_light_nodisable

@color/tertiary_text_dark

@color/tertiary_text_light

@color/hint_foreground_dark

@color/hint_foreground_light

@color/highlighted_text_dark

@color/highlighted_text_light

@color/link_text_dark

@color/link_text_light

@color/search_url_text

@color/primary_text_light_disable_only

@style/TextAppearance.Large

@style/TextAppearance.Medium

@style/TextAppearance.Small

@style/TextAppearance.Large.Inverse

@style/TextAppearance.Medium.Inverse

@style/TextAppearance.Small.Inverse

@style/TextAppearance.SearchResult.Title

@style/TextAppearance.SearchResult.Subtitle

@style/TextAppearance.EasyCorrectSuggestion

@style/TextAppearance.MisspelledSuggestion

@style/TextAppearance.AutoCorrectionSuggestion

@style/TextAppearance.Widget.Button

@color/primary_text_light

@drawable/edit_text

@string/candidates_style

@drawable/indicator_check_mark_dark

@drawable/indicator_check_mark_light

@style/TextAppearance.Widget.PopupMenu.Large

@style/TextAppearance.Widget.PopupMenu.Small

@style/Widget.Button

@style/Widget.Button.Small

@style/Widget.Button.Inset

@style/Widget.Button.Toggle

0dp

@style/Widget.CompoundButton.Switch

@style/Widget.DeviceDefault.MediaRouteButton

@drawable/item_background

?attr/selectableItemBackground

?attr/buttonStyle

@drawable/ic_ab_back_holo_dark

64dip

?attr/listPreferredItemHeight

?attr/listPreferredItemHeight

?attr/listPreferredItemHeight

?attr/textAppearanceLarge

?attr/textAppearanceLarge

?attr/textAppearanceSmall

6dip

6dip

6dip

6dip

58dip

@drawable/divider_horizontal_dark

@style/Widget.TextView.ListSeparator

@drawable/btn_radio

@drawable/btn_check

@drawable/list_selector_background

@drawable/activated_background

@drawable/divider_horizontal_bright

40dip

?attr/expandableListPreferredItemPaddingLeft

3dip

0dip

?attr/expandableListPreferredItemIndicatorLeft

?attr/expandableListPreferredItemIndicatorRight

@drawable/ic_find_next_holo_dark

@drawable/ic_find_previous_holo_dark

@drawable/gallery_item_background

@drawable/screen_background_selector_dark

?attr/colorBackground

false

@null

false

false

false

false

@null

false

@style/WindowTitle

25dip

@style/WindowTitleBackground

@style/Animation.Activity

stateUnspecified|adjustUnspecified

false

false

false

false

false

false

@color/black

@color/black

@layout/screen_action_bar

false

false

0dp

0dp

0dp

0dp

@style/Theme.Dialog

@layout/dialog_title_icons

@layout/dialog_custom_title

@layout/dialog_title

@dimen/dialog_padding

0dp

@style/Theme.Dialog.Alert

@style/AlertDialog

true

@drawable/ic_dialog_alert

@style/Theme.DeviceDefault.Dialog.Presentation

@drawable/toast_frame

@drawable/menu_background

@drawable/menu_background_fill_parent_width

#000

?attr/textColorPrimary

?attr/textAppearance

false

296dip

250

300

10dip

@drawable/scrollbar_handle_horizontal

@drawable/scrollbar_handle_vertical

@null

@null

@drawable/text_select_handle_left_material

@drawable/text_select_handle_right_material

@drawable/text_select_handle_middle_material

@style/Widget.TextSelectHandle

@layout/text_edit_paste_window

@layout/text_edit_no_paste_window

@layout/text_edit_side_paste_window

@layout/text_edit_side_no_paste_window

@null

@style/Widget.AbsListView

@style/Widget.AutoCompleteTextView

@style/Widget.CompoundButton.CheckBox

@style/Widget.CheckedTextView

@style/Widget.ListView.DropDown

@style/Widget.EditText

@style/Widget.ExpandableListView

@style/Widget.ExpandableListView.White

@style/Widget.FastScroll

@style/Widget.Gallery

@style/Widget.GestureOverlayView

@style/Widget.GridView

@style/Widget.ImageButton

@style/Widget.ImageWell

@style/Widget.ListView

@style/Widget.ListView.White

@style/Widget.PopupWindow

@style/Widget.ProgressBar

@style/Widget.ProgressBar.Horizontal

@style/Widget.ProgressBar.Small

@style/Widget.ProgressBar.Small.Title

@style/Widget.ProgressBar.Large

@style/Widget.ProgressBar.Inverse

@style/Widget.ProgressBar.Small.Inverse

@style/Widget.ProgressBar.Large.Inverse

@style/Widget.SeekBar

@style/Widget.RatingBar

@style/Widget.RatingBar.Indicator

@style/Widget.RatingBar.Small

@style/Widget.CompoundButton.RadioButton

@style/Widget.ScrollView

@style/Widget.HorizontalScrollView

@style/Widget.Spinner

@style/Widget.Spinner.DropDown

@style/Widget.CompoundButton.Star

@style/Widget.TabWidget

@style/Widget.TextView

@drawable/popup_inline_error

@drawable/popup_inline_error_above

@style/Widget.WebTextView

@style/Widget.WebView

@style/Widget.DropDownItem

@style/Widget.DropDownItem.Spinner

@style/Widget.TextView.SpinnerItem

@style/TextAppearance.Widget.DropDownHint

@style/Widget.KeyboardView

@drawable/quickcontact_badge_overlay_dark

@style/Widget.QuickContactBadge.WindowSmall

@style/Widget.QuickContactBadge.WindowMedium

@style/Widget.QuickContactBadge.WindowLarge

@style/Widget.QuickContactBadgeSmall.WindowSmall

@style/Widget.QuickContactBadgeSmall.WindowMedium

@style/Widget.QuickContactBadgeSmall.WindowLarge

@style/Widget.ListPopupWindow

@style/Widget.PopupMenu

@style/Widget.ActivityChooserView

@style/Widget.FragmentBreadCrumbs

?attr/popupMenuStyle

@style/Preference.PreferenceScreen

@style/PreferenceActivity

@style/PreferenceFragment

@style/Preference.Category

@style/Preference

@style/Preference.Information

@style/Preference.CheckBoxPreference

@style/Preference.SwitchPreference

@style/Preference.SeekBarPreference

@style/Preference.DialogPreference.YesNoPreference

@style/Preference.DialogPreference

@style/Preference.DialogPreference.SeekBarPreference

@style/Preference.DialogPreference.EditTextPreference

@style/Preference.RingtonePreference

@layout/preference_child

@style/PreferencePanel

@style/PreferenceHeaderPanel

@style/PreferenceHeaderList

@style/PreferenceFragmentList

@dimen/preference_fragment_padding_side

@drawable/panel_bg_holo_dark

@color/search_widget_corpus_item_background

@style/Widget.Spinner.DropDown

@style/Widget.ActionButton

@style/Widget.ActionButton.Overflow

?attr/popupMenuStyle

@drawable/cab_background_top_holo_dark

@null

@drawable/ic_menu_close_clear_cancel

@drawable/ic_menu_cut_holo_dark

@drawable/ic_menu_copy_holo_dark

@drawable/ic_menu_paste_holo_dark

@drawable/ic_menu_selectall_holo_dark

@drawable/ic_menu_share_holo_dark

@drawable/ic_menu_find_holo_dark

@drawable/ic_menu_search

@style/Widget.ActionBar.TabView

@style/Widget.ActionBar.TabBar

@style/Widget.ActionBar.TabText

@style/Widget.ActionMode

@style/Widget.ActionButton.CloseMode

@style/Widget.ActionBar

?attr/actionBarStyle

@dimen/action_bar_default_height

?attr/popupWindowStyle

@style/TextAppearance.Holo.Widget.ActionBar.Menu

?attr/textColorPrimary

@null

@null

@null

?attr/dividerVertical

?attr/selectableItemBackground

@style/Widget.Toolbar

@drawable/divider_vertical_dark

@drawable/divider_vertical_dark

@style/ButtonBar

?attr/buttonStyle

?attr/buttonBarButtonStyle

?attr/buttonBarButtonStyle

?attr/buttonBarButtonStyle

@style/SegmentedButton

@drawable/ic_fingerprint

@drawable/ic_ab_back_material_dark

@color/foreground_material_dark

@drawable/item_background_borderless_material_dark

@drawable/item_background_material_dark

@drawable/ic_menu_moreoverflow_material_dark

@drawable/floating_popup_background_dark

@color/floating_popup_divider_dark

@style/Widget.Holo.SearchView

@style/Theme.SearchBar

@style/Widget.PreferenceFrameLayout

@style/Widget.NumberPicker

@style/Widget.CalendarView

@style/Widget.TimePicker

?attr/alertDialogTheme

@style/Widget.DatePicker

?attr/alertDialogTheme

@drawable/scrollbar_handle_accelerated_anim2

@null

@drawable/menu_submenu_background

@drawable/menu_submenu_background

floating

@color/primary_text_dark

@color/legacy_pressed_highlight

@color/legacy_long_pressed_highlight

@color/legacy_selected_highlight

@color/legacy_selected_highlight

@color/legacy_selected_highlight

@color/legacy_primary_dark

@color/legacy_primary

?attr/colorPrimary

@color/legacy_control_activated

@color/legacy_control_normal

@color/legacy_button_pressed

@color/legacy_button_normal

?attr/colorPrimary

@drawable/view_accessibility_focused

@drawable/autofilled_highlight

@dimen/light_y

@dimen/light_z

@dimen/light_radius

@dimen/ambient_shadow_alpha

@dimen/spot_shadow_alpha

@drawable/tooltip_frame

@color/bright_foreground_light

@color/tooltip_background_light

@dimen/autofill_dataset_picker_max_width

@dimen/autofill_dataset_picker_max_height

@dimen/autofill_save_custom_subtitle_max_height

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值