textAppearance 解答,android系统主题样式

 
   
STYLE name="Theme"> 



@android:color/bright_foreground_dark 

@android:color/bright_foreground_dark_inverse 

@android:color/background_dark 

?android:attr/colorbackground 

0.5 

0.6 



 

@android:style/textappearance 

@android:style/textappearance.inverse 

@android:color/primary_text_dark 

@android:color/secondary_text_dark 

@android:color/tertiary_text_dark 

@android:color/primary_text_light 

@android:color/secondary_text_light 

@android:color/tertiary_text_light 

@android:color/primary_text_dark_disable_only 



@android:color/primary_text_light_disable_only 

@android:color/primary_text_dark_nodisable 



@android:color/secondary_text_dark_nodisable 



@android:color/primary_text_light_nodisable 



@android:color/secondary_text_light_nodisable

 



@android:color/hint_foreground_dark 

@android:color/hint_foreground_light 

@android:color/search_url_text 

@android:style/textappearance.large 

@android:style/textappearance.medium 

@android:style/textappearance.small 

@android:style/textappearance.large.inverse 

@android:style/textappearance.medium.inverse 

@android:style/textappearance.small.inverse 



@android:style/textappearance.searchresult.title 

@android:style/textappearance.searchresult.subtitle 





@android:style/textappearance.widget.button 



@android:string/candidates_style 

@android:drawable/indicator_check_mark_dark 

@android:drawable/indicator_check_mark_light 



 

@android:style/widget.button 

@android:style/widget.button.small 

@android:style/widget.button.inset 

@android:style/widget.button.toggle 



 

64dip 



 

58dip 



@drawable/divider_horizontal_dark 

@android:style/widget.textview.listseparator 

@android:drawable/btn_radio 

@android:drawable/btn_check 

40dip 

 

 

3dip 

33dip 

 

 

 

 



 

@android:drawable/gallery_item_background 



 

@android:drawable/screen_background_dark 



@null 

false 

false 

false 

@android:drawable/title_bar_shadow 

false 

@android:style/windowtitle 

25dip 

@android:style/windowtitlebackground 

@android:style/animation.activity 

stateunspecified|adjustunspecified 





 

@android:style/alertdialog 

 

@android:drawable/menu_background 

@android:drawable/menu_background_fill_parent_width 



#fff 

?android:attr/textcolorprimaryinverse 

?android:attr/textappearanceinverse 

 

250 

300 

10dip 



@android:drawable/scrollbar_handle_horizontal 

@android:drawable/scrollbar_handle_vertical 

@null 

@null 



 

@android:style/widget.abslistview 

@android:style/widget.autocompletetextview 

@android:style/widget.compoundbutton.checkbox 

@android:style/widget.listview.dropdown 

@android:style/widget.edittext 

@android:style/widget.expandablelistview 

@android:style/widget.expandablelistview.white 

@android:style/widget.gallery 



@android:style/widget.gestureoverlayview 

@android:style/widget.gridview 

@android:style/widget.imagebutton 

@android:style/widget.imagewell 

@android:style/widget.listview 

@android:style/widget.listview.white 

@android:style/widget.popupwindow 

@android:style/widget.progressbar 

@android:style/widget.progressbar.horizontal 

@android:style/widget.progressbar.small 

@android:style/widget.progressbar.small.title 

@android:style/widget.progressbar.large 

@android:style/widget.progressbar.inverse 

@android:style/widget.progressbar.small.inverse 

@android:style/widget.progressbar.large.inverse 

@android:style/widget.seekbar 

@android:style/widget.ratingbar 

@android:style/widget.ratingbar.indicator 

@android:style/widget.ratingbar.small 

@android:style/widget.compoundbutton.radiobutton 

@android:style/widget.scrollview 

@android:style/widget.horizontalscrollview 

@android:style/widget.spinner 

@android:style/widget.compoundbutton.star 

@android:style/widget.tabwidget 

@android:style/widget.textview 

@android:style/widget.webtextview 

@android:style/widget.webview 

@android:style/widget.dropdownitem 

@android:style/widget.dropdownitem.spinner 

@android:style/widget.textview.spinneritem 

@android:style/textappearance.widget.dropdownhint 

@android:style/widget.keyboardview 

@android:style/widget.quickcontactbadge.windowsmall 



@android:style/widget.quickcontactbadge.windowmedium 



@android:style/widget.quickcontactbadge.windowlarge 



@android:style/widget.quickcontactbadgesmall.windowsmall 



@android:style/widget.quickcontactbadgesmall.windowmedium 



@android:style/widget.quickcontactbadgesmall.windowlarge 



 

@android:style/preference.preferencescreen 

@android:style/preference.category 

@android:style/preference 

@android:style/preference.information 

@android:style/preference.checkboxpreference 

@android:style/preference.dialogpreference.yesnopreference 



@android:style/preference.dialogpreference 

@android:style/preference.dialogpreference.edittextpreference 



@android:style/preference.ringtonepreference 

@android:layout/preference_child 





 

@android:color/search_widget_corpus_item_background 



 



 



 



 



 



 



 



 

 

 



 



 



 

文章来自: 安卓手机网(www.anzhuopp.com) 详文参考:http://www.anzhuopp.com/Androidshouji/1107/

Android之系统自带的文字外观设置及实际显示效果图 android:textAppearancexml布局里面设置文字的外观:如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,?表示系统是否有这种外观,否则使用默认的外观。可设置的值如下:  

android:textAppearance="?android:attr/textAppearanceLarge"

 

  android:textAppearance="?android:attr/textAppearanceMedium"

 

   android:textAppearance="?android:attr/textAppearanceSmall"

......

@表示引用系统外观

 

如果整个项目中都引用统一的字体大小和颜色,则使整个项目感觉风格一致,否则影响视觉的体验

当然这是美工应该考虑的问题

我们也可以自定义样式 在value/satyle.xml中自行定义好看的样式

下面这个是系统主题,可以学习下。

 

你可能感兴趣的:(android,android,attributes,styles,dialog,button,search)