Android2.2 自带样式styles.xml的源代码(三)

迷途d书童 发布于 2012/03/26 18:47
阅读 1K+
收藏 0
 

java代码:

<STYLE name="Widget.TabWidget">

<item name="android:textAppearance">@style/textappearance.widget.tabwidget</item>

<item name="ellipsize">marquee</item>

<item name="singleLine">true</item>

</STYLE>

 

<STYLE name="Widget.Gallery">

<item name="android:fadingEdge">horizontal</item>

<item name="android:gravity">center_vertical</item>

<item name="android:spacing">-20dip</item>

<item name="android:unselectedAlpha">0.85</item>

</STYLE>

 

<STYLE name="Widget.PopupWindow">

<item name="android:popupBackground">@android:drawable/editbox_dropdown_background_dark</item>

 

</STYLE>

 

<STYLE name="Widget.KeyboardView" parent="android:Widget">

<item name="android:background">@android:drawable/keyboard_background</item>

<item name="android:keyBackground">@android:drawable/btn_keyboard_key</item>

<item name="android:keyTextSize">22sp</item>

<item name="android:keyTextColor">#ffffffff</item>

<item name="android:keyPreviewLayout">@android:layout/keyboard_key_preview</item>

<item name="android:keyPreviewOffset">-12dip</item>

<item name="android:keyPreviewHeight">80dip</item>

<item name="android:labelTextSize">14sp</item>

<item name="android:popupLayout">@android:layout/keyboard_popup_keyboard</item>

<item name="android:verticalCorrection">-10dip</item>

<item name="android:shadowColor">#bb000000</item>

<item name="android:shadowRadius">2.75</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadge">

<item name="android:layout_width">50dip</item>

<item name="android:layout_height">56dip</item>

<item name="android:background">@android:drawable/quickcontact_badge</item>

<item name="android:clickable">true</item>

<item name="android:scaleType">fitcenter</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadgeSmall">

<item name="android:layout_width">39dip</item>

<item name="android:layout_height">42dip</item>

<item name="android:background">@android:drawable/quickcontact_badge_small</item>

<item name="android:clickable">true</item>

<item name="android:scaleType">fitcenter</item>

</STYLE>

 

 

<STYLE name="Widget.QuickContactBadge.WindowSmall">

<item name="android:quickContactWindowSize">modesmall</item>

</STYLE>

 

 

<STYLE name="Widget.QuickContactBadge.WindowMedium">

<item name="android:quickContactWindowSize">modemedium</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadge.WindowLarge">

<item name="android:quickContactWindowSize">modelarge</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadgeSmall.WindowSmall">

<item name="android:quickContactWindowSize">modesmall</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadgeSmall.WindowMedium">

<item name="android:quickContactWindowSize">modemedium</item>

</STYLE>

 

<STYLE name="Widget.QuickContactBadgeSmall.WindowLarge">

<item name="android:quickContactWindowSize">modelarge</item>

</STYLE>

 

<!-- Text Appearances -->

<EAT -comment />

<STYLE name="TextAppearance">

<item name="android:textColor">?textcolorprimary</item>

<item name="android:textColorHighlight">#ffff9200</item>

<item name="android:textColorHint">?textcolorhint</item>

<item name="android:textColorLink">#5c5cff</item>

<item name="android:textSize">16sp</item>

<item name="android:textStyle">normal</item>

</STYLE>

<STYLE name="TextAppearance.Inverse">

<item name="textColor">?textcolorprimaryinverse</item>

<item name="android:textColorHint">?textcolorhintinverse</item>

<item name="android:textColorLink">#0000ee</item>

</STYLE>

 

 

<STYLE name="TextAppearance.Theme">

</STYLE>

 

<STYLE name="TextAppearance.DialogWindowTitle">

<item name="android:textSize">18sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">?textcolorprimary</item>

</STYLE>

 

<STYLE name="TextAppearance.Large">

<item name="android:textSize">22sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">?textcolorprimary</item>

</STYLE>

 

<STYLE name="TextAppearance.Large.Inverse">

<item name="android:textColor">?textcolorprimaryinverse</item>

<item name="android:textColorHint">?textcolorhintinverse</item>

</STYLE>

 

<STYLE name="TextAppearance.Medium">

<item name="android:textSize">18sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">?textcolorprimary</item>

</STYLE>

 

<STYLE name="TextAppearance.Medium.Inverse">

<item name="android:textColor">?textcolorprimaryinverse</item>

<item name="android:textColorHint">?textcolorhintinverse</item>

</STYLE>

<STYLE name="TextAppearance.Small">

<item name="android:textSize">14sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">?textcolorsecondary</item>

</STYLE>

 

<STYLE name="TextAppearance.Small.Inverse">

<item name="android:textColor">?textcolorsecondaryinverse</item>

<item name="android:textColorHint">?textcolorhintinverse</item>

</STYLE>

 

<STYLE name="TextAppearance.Theme.Dialog" parent="TextAppearance.Theme">

</STYLE>

 

<STYLE name="TextAppearance.Theme.Dialog.AppError">

<item name="android:textColor">#ffffc0c0</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget">

</STYLE>

 

<STYLE name="TextAppearance.Widget.Button" parent="TextAppearance.Small.Inverse">

<item name="android:textColor">@android:color/primary_text_light_nodisable</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.IconMenu.Item" parent="TextAppearance.Small">

<item name="android:textColor">?textcolorprimaryinverse</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.EditText">

<item name="android:textColor">@color/widget_edittext_dark</item>

<item name="android:textColorHint">@android:color/hint_foreground_light</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.TabWidget">

<item name="android:textSize">14sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">@android:color/tab_indicator_text</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.TextView">

<item name="android:textColor">?textcolorprimarydisableonly</item>

<item name="android:textColorHint">?textcolorhint</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.TextView.PopupMenu">

<item name="android:textSize">18sp</item>

<item name="android:textColor">?textcolorprimarydisableonly</item>

<item name="android:textColorHint">?textcolorhint</item>

</STYLE>

 

 

<STYLE name="TextAppearance.Widget.DropDownHint">

<item name="android:textColor">?textcolorprimaryinverse</item>

<item name="android:textSize">14sp</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.DropDownItem">

<item name="android:textColor">@android:color/primary_text_light_disable_only</item>

</STYLE>

 

<STYLE name="TextAppearance.Widget.TextView.SpinnerItem">

<item name="android:textColor">@android:color/primary_text_light_disable_only</item>

</STYLE>

 

<!-- @hide -->

<STYLE name="TextAppearance.SlidingTabNormal" parent="@android:attr/textAppearanceMedium">

<item name="android:textColor">?android:attr/textcolortertiary</item>

<item name="android:textSize">28sp</item>

<item name="android:shadowColor">@android:color/sliding_tab_text_color_shadow</item>

<item name="android:shadowDx">0.0</item>

<item name="android:shadowDy">1.0</item>

<item name="android:shadowRadius">5.0</item>

</STYLE>

 

<!-- @hide -->

<STYLE name="TextAppearance.SlidingTabActive" parent="@android:attr/textAppearanceMedium">

<item name="android:textColor">@android:color/sliding_tab_text_color_active</item>

<item name="android:textSize">28sp</item>

</STYLE>

 

<!-- @hide -->

<STYLE name="TextAppearance.SearchResult">

<item name="android:textStyle">normal</item>

<item name="android:textColor">?textcolorprimaryinverse</item>

<item name="android:textColorHint">?textcolorhintinverse</item>

</STYLE>

 

<!-- @hide -->

<STYLE name="TextAppearance.SearchResult.Title">

<item name="android:textSize">16sp</item>

</STYLE>

 

<!-- @hide -->

<STYLE name="TextAppearance.SearchResult.Subtitle">

<item name="android:textSize">13sp</item>

<item name="android:textColor">?textcolorsecondaryinverse</item>

</STYLE>

 

<STYLE name="TextAppearance.WindowTitle">

<item name="android:textColor">#fff</item>

<item name="android:textSize">14sp</item>

<item name="android:textStyle">bold</item>

</STYLE>

 

<!-- Preference Styles -->

<STYLE name="Preference">

<item name="android:layout">@android:layout/preference</item>

</STYLE>

 

<STYLE name="Preference.Information">

<item name="android:layout">@android:layout/preference_information</item>

<item name="android:enabled">false</item>

<item name="android:shouldDisableView">false</item>

</STYLE>

 

<STYLE name="Preference.Category">

<item name="android:layout">@android:layout/preference_category</item>

<!-- The title should not dim if the category is disabled, instead only the preference children should dim. -->

<item name="android:shouldDisableView">false</item>

<item name="android:selectable">false</item>

</STYLE>

<STYLE name="Preference.CheckBoxPreference">

<item name="android:widgetLayout">@android:layout/preference_widget_checkbox</item>

</STYLE>

<STYLE name="Preference.PreferenceScreen">

</STYLE>

 

 

<STYLE name="Preference.DialogPreference">

<item name="android:positiveButtonText">@android:string/ok</item>

<item name="android:negativeButtonText">@android:string/cancel</item>

<item name="android:widgetLayout">@android:layout/preference_dialog</item>

</STYLE>

 

<STYLE name="Preference.DialogPreference.YesNoPreference">

<item name="android:positiveButtonText">@android:string/yes</item>

<item name="android:negativeButtonText">@android:string/no</item>

</STYLE>

 

 

<STYLE name="Preference.DialogPreference.EditTextPreference">

<item name="android:dialogLayout">@android:layout/preference_dialog_edittext</item>

</STYLE>

 

<STYLE name="Preference.RingtonePreference">

<item name="android:ringtoneType">ringtone</item>

<item name="android:showSilent">true</item>

<item name="android:showDefault">true</item>

<item name="android:widgetLayout">@android:layout/preference_dialog</item>

</STYLE>

 

<!-- Other Misc Styles -->

<EAT -comment />

<STYLE name="MediaButton">

<item name="android:background">@android:drawable/media_button_background</item>

<item name="android:layout_width">71dip</item>

<item name="android:layout_height">52dip</item>

</STYLE>

 

 

<STYLE name="MediaButton.Previous">

<item name="android:src">@android:drawable/ic_media_previous</item>

</STYLE>

 

<STYLE name="MediaButton.Next">

<item name="android:src">@android:drawable/ic_media_next</item>

</STYLE>

 

<STYLE name="MediaButton.Play">

<item name="android:src">@android:drawable/ic_media_play</item>

</STYLE>

 

<STYLE name="MediaButton.Ffwd">

<item name="android:src">@android:drawable/ic_media_ff</item>

</STYLE>

 

<STYLE name="MediaButton.Rew">

<item name="android:src">@android:drawable/ic_media_rew</item>

</STYLE>

 

<STYLE name="MediaButton.Pause">

<item name="android:src">@android:drawable/ic_media_pause</item>

</STYLE>

 

<STYLE name="ZoomControls">

<item name="android:gravity">bottom</item>

<item name="android:paddingLeft">15dip</item>

<item name="android:paddingRight">15dip</item>

</STYLE>

 

<!-- Style you can use with a container (typically a horizontal

LinearLayout) to get the standard "button bar" background and spacing. @hide -->

 

<STYLE name="ButtonBar">

<item name="android:paddingTop">5dip</item>

<item name="android:paddingLeft">4dip</item>

<item name="android:paddingRight">4dip</item>

<item name="android:paddingBottom">1dip</item>

<item name="android:background">@android:drawable/bottom_bar</item>

</STYLE>

 

</EM></RESOURCES>

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


原文链接:http://blog.csdn.net/liao3841054/article/details/6943619
加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部