We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39fb335 commit fd80757Copy full SHA for fd80757
2 files changed
lesscode-core/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2
apply plugin: 'com.github.dcendents.android-maven'
3
apply plugin: 'com.jfrog.bintray'
4
5
-version = "0.8.7" // #CONFIG# // project version
+version = "0.8.8" // #CONFIG# // project version
6
7
android {
8
compileSdkVersion 23
lesscode-core/src/main/java/com/jayfeng/lesscode/core/ActivityLess.java
@@ -60,4 +60,13 @@ public class ActivityLess {
60
return true;
61
}
62
63
+
64
+ /**
65
+ * 优化activity的背景过度绘制
66
+ * 在合适的时候调用,建议放在super.onCreate(saveInstanceState)代码下面一行
67
+ * @param activity
68
+ */
69
+ public static void $optimizeBackgroundOverdraw(Activity activity) {
70
+ activity.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
71
+ }
72
0 commit comments