Skip to content

Commit 74be745

Browse files
committed
remove .idea
1 parent 0d4634a commit 74be745

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ captures/
3434

3535
# Intellij
3636
*.iml
37-
.idea/workspace.xml
38-
.idea/tasks.xml
39-
.idea/gradle.xml
40-
.idea/dictionaries
41-
.idea/libraries
37+
.idea
4238

4339
# Keystore files
4440
*.jks

app/src/main/java/com/cyq7on/swellview/SwellView.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import android.text.TextPaint;
1111
import android.text.TextUtils;
1212
import android.util.AttributeSet;
13+
import android.util.Log;
1314
import android.view.View;
1415

1516

@@ -475,8 +476,9 @@ public void swell(float scaleXBy, float scaleYBy, int duraTime) {
475476

476477
public void drawSmallCircle(Canvas canvas) {
477478
canvas.save();
478-
float dx = getWidth() / 2 / getScaleX();
479-
float dy = getHeight() / 2 / getScaleY();
479+
float dx = getWidth() / 2;
480+
float dy = getHeight() / 2;
481+
Log.d("test",dx+"\n"+dy);
480482
canvas.translate(dx,dy);
481483
float radius = (float) (50 * Math.random());
482484
canvas.drawCircle(0, -dy, radius, mFillPaint);

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.2'
8+
classpath 'com.android.tools.build:gradle:2.3.0'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Dec 28 10:00:20 PST 2015
1+
#Fri Mar 17 14:42:11 CST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 commit comments

Comments
 (0)