增加共通样式

This commit is contained in:
zengfantian 2015-10-31 18:20:49 +08:00
parent 0ae470f529
commit d2f87c19eb
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 去除Listview/Gridview两端阴影样式 -->
<style name="NoShadowListStyle">
<item name="android:overScrollMode">never</item>
<item name="android:fadingEdge">none</item>
<item name="android:cacheColorHint">@android:color/transparent</item>
</style>
<!-- 无滚动条无分隔线 样式 -->
<style name="NoScrollBarStyle" parent="NoShadowListStyle">
<item name="android:scrollbars">none</item>
<item name="android:divider">@null</item>
</style>
<!-- 操作对话框(开始) -->
<style name="CommonDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowFrame">@null</item><!-- 边框 -->
<item name="android:windowNoTitle">true</item><!-- 无标题 -->
<item name="android:windowIsTranslucent">false</item><!-- 是否透明 -->
<item name="android:windowIsFloating">true</item><!-- 是否浮现在activity之上 -->
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:windowBackground">@color/black_80_alpha</item><!-- 自己想要的背景 -->
<item name="android:backgroundDimEnabled">true</item><!-- 模糊 -->
</style>
<style name="OperationDialog" parent="CommonDialog">
<item name="android:windowAnimationStyle">@style/dialog_animation</item>
</style>
<style name="OperationDialogNoAnim" parent="@android:style/Theme.Dialog">
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
</style>
<!-- 操作对话框(结束) -->
</resources>