mirror of
https://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-08-26 10:55:52 +08:00
033b9aec67
1. 桌面图标长按快捷菜单
- 在MainActivity注册动态快捷方式,长按桌面图标显示
- 快捷入口邮件设置,点击打开APPExcetionMailSettingsActivity
2. 修复colors.xml移除后XML资源引用崩溃
- drawable/styles/layout中28处@color/引用替换为内联色值
- 修复CrashActivity启动时Resources:
ic_launcher_background → @color/colorPrimary 找不到
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
|
<!-- 阴影部分 -->
|
|
<!-- 个人觉得更形象的表达:top代表下边的阴影高度,left代表右边的阴影宽度。其实也就是相对应的offset,solid中的颜色是阴影的颜色,也可以设置角度等等 -->
|
|
<item
|
|
android:left="2dp"
|
|
android:top="2dp"
|
|
android:right="2dp"
|
|
android:bottom="2dp">
|
|
<shape android:shape="rectangle" >
|
|
<gradient
|
|
android:angle="270"
|
|
android:endColor="#FF00B322"
|
|
android:startColor="#FF00B322" />
|
|
<corners
|
|
android:bottomLeftRadius="6dip"
|
|
android:bottomRightRadius="6dip"
|
|
android:topLeftRadius="6dip"
|
|
android:topRightRadius="6dip" />
|
|
</shape>
|
|
</item>
|
|
<!-- 背景部分 -->
|
|
<!-- 形象的表达:bottom代表背景部分在上边缘超出阴影的高度,right代表背景部分在左边超出阴影的宽度(相对应的offset) -->
|
|
<item
|
|
android:left="3dp"
|
|
android:top="3dp"
|
|
android:right="3dp"
|
|
android:bottom="5dp">
|
|
<shape android:shape="rectangle" >
|
|
<gradient
|
|
android:angle="270"
|
|
android:endColor="#FF00B322"
|
|
android:startColor="#FF00B322" />
|
|
<corners
|
|
android:bottomLeftRadius="6dip"
|
|
android:bottomRightRadius="6dip"
|
|
android:topLeftRadius="6dip"
|
|
android:topRightRadius="6dip" />
|
|
</shape>
|
|
</item>
|
|
</layer-list>
|