Skip to content

Commit

Permalink
Update targetSdkVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-peiming committed Feb 23, 2023
1 parent df3a8f8 commit d620116
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileSdkVersion 33
defaultConfig {
applicationId "com.wangpm.enteranimation"
minSdkVersion 15
targetSdkVersion 23
minSdkVersion 19
targetSdkVersion 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/anim/AnimLingXing.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void handleCanvas(Canvas canvas, float rate) {
path1.lineTo(w/2, h+h/2 - h*rate);
path1.lineTo(w+w/2 -w*rate, h/2);
path1.close();//封闭
canvas.clipPath(path1, Region.Op.XOR);
canvas.clipPath(path1, Region.Op.DIFFERENCE);

canvas.save();
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/anim/AnimPiLie.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.graphics.Canvas;
import android.graphics.Region;
import android.os.Build;
import android.view.View;

import com.wangpm.enteranimation.EnterAnimLayout;
Expand All @@ -19,8 +20,7 @@ public AnimPiLie(EnterAnimLayout view) {
public void handleCanvas(Canvas canvas, float rate) {
float rectLeft = w / 2 * rate;
float rectRight = w - w / 2 * rate;
canvas.clipRect(rectLeft, 0, rectRight, h, Region.Op.XOR);

canvas.clipRect(rectLeft, 0, rectRight, h, Region.Op.DIFFERENCE);
canvas.save();
}
}

0 comments on commit d620116

Please sign in to comment.