add some styles
This commit is contained in:
parent
2b5e8be15f
commit
c9960f13d2
2 changed files with 45 additions and 1 deletions
|
@ -29,5 +29,5 @@ ext {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '2.0.3'
|
||||
propVersionName = '2.0.5'
|
||||
}
|
||||
|
|
44
commons/src/main/res/values/styles.xml
Normal file
44
commons/src/main/res/values/styles.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<resources>
|
||||
|
||||
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="colorPrimary">@color/color_primary</item>
|
||||
<item name="colorPrimaryDark">@color/color_primary_dark</item>
|
||||
<item name="colorAccent">@color/color_accent</item>
|
||||
<item name="actionBarStyle">@style/AppTheme.ActionBarStyle</item>
|
||||
<item name="android:textSize">@dimen/normal_text_size</item>
|
||||
<item name="android:spinnerItemStyle">@style/SpinnerItem</item>
|
||||
<item name="spinnerDropDownItemStyle">@style/SpinnerItem.DropDownItem</item>
|
||||
<item name="android:spinnerDropDownItemStyle">@style/SpinnerItem.DropDownItem</item>
|
||||
</style>
|
||||
|
||||
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="MyWidgetConfigTheme" parent="@style/AppTheme.Base">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowShowWallpaper">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.ActionBarStyle" parent="@style/Base.Widget.AppCompat.ActionBar">
|
||||
<item name="background">@color/color_primary</item>
|
||||
<item name="titleTextStyle">@style/AppTheme.ActionBar.TitleTextStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
|
||||
<item name="android:fontFamily">sans-serif</item>
|
||||
<item name="android:textSize">@dimen/actionbar_text_size</item>
|
||||
</style>
|
||||
|
||||
<style name="SpinnerItem" parent="@android:style/Widget.TextView">
|
||||
<item name="android:paddingRight">@dimen/activity_margin</item>
|
||||
</style>
|
||||
|
||||
<style name="SpinnerItem.DropDownItem" parent="@android:style/Widget.TextView">
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:paddingTop">@dimen/medium_margin</item>
|
||||
<item name="android:paddingBottom">@dimen/medium_margin</item>
|
||||
<item name="android:paddingLeft">@dimen/activity_margin</item>
|
||||
<item name="android:paddingRight">@dimen/activity_margin</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Reference in a new issue