styles.xml
4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<resources>
<!-- Base application theme. -->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#ffffff</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<!--继承Theme.AppCompat.NoActionBar,不显示标题栏-->
<style name="TransparentTheme" parent="Theme.AppCompat.NoActionBar">
<!--不设置activity进入和退出动画样式-->
<item name="android:windowAnimationStyle">@null</item>
<!--设置窗口的背景为透明,设置透明背景必须要设置此项-->
<item name="android:windowBackground">@android:color/transparent</item>
<!--设置窗口的背景是否为半透明,设置透明背景必须要设置此项-->
<item name="android:windowIsTranslucent">true</item>
<!--设置状态栏的背景为半透明-->
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<!--Dialog的样式-->
<style name="myDialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
<!--Dialog的样式-->
<style name="FullScreenDialog" parent="AppBaseTheme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
<!--SuperCheckbox的样式-->
<style name="SuperCheckboxTheme" parent="@android:style/Widget.CompoundButton.CheckBox">
<item name="android:button">@drawable/selector_item_checked</item>
</style>
<style name="MyRatingBar" parent="@android:style/Widget.RatingBar">
<item name="android:progressDrawable">@drawable/myratingbar_bg</item>
<item name="android:minHeight">10dp</item>
<item name="android:maxHeight">14dp</item>
</style>
<!--下载进度条-->
<style name="ProgressBar_Download" parent="@android:style/Widget.ProgressBar.Horizontal">
<item name="android:maxHeight">200dip</item>
<item name="android:minHeight">10dip</item>
<item name="android:indeterminateOnly">false</item>
<item name="android:indeterminateDrawable">
@android:drawable/progress_indeterminate_horizontal
</item>
<item name="android:progressDrawable">@drawable/progressbar_download</item>
</style>
<style name="AppBaseTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppBaseTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<declare-styleable name="MaxHeightRecyclerView">
<attr name="maxHeight" format="dimension" />
</declare-styleable>
<declare-styleable name="SendGiftView">
<attr name="showDesc" format="boolean" />
</declare-styleable>
<style name="ViewPagerIndicator" parent="@android:style/TextAppearance.Widget.TextView">
<item name="android:textColor">@color/chat_text</item>
<item name="android:textSize">13sp</item>
</style>
<style name="ViewPagerIndicatorSelect" parent="@android:style/TextAppearance.Widget.TextView">
<item name="android:textColor">@color/white</item>
<item name="android:textSize">15sp</item>
<item name="android:textStyle">bold</item>
</style>
<style name="ViewPagerUserIndicator" parent="@android:style/TextAppearance.Widget.TextView">
<item name="android:textColor">@color/text_999999</item>
<item name="android:textSize">13sp</item>
</style>
<style name="ViewPagerUserIndicatorSelect" parent="@android:style/TextAppearance.Widget.TextView">
<item name="android:textColor">@color/text_333333</item>
<item name="android:textSize">15sp</item>
<item name="android:textStyle">bold</item>
</style>
</resources>