Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7529554

Browse files
authored
Merge pull request#15 from thsamajiki/patch-1
Update README.md
2 parentsc601470 +e61e456 commit7529554

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎README.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
[![Kitpack](https://jitpack.io/v/skydoves/ElasticViews.svg)](https://jitpack.io/#skydoves/ElasticViews)
2323

2424
####Gradle
25-
Addbelowcodes to your**root**`build.gradle` file (not your module build.gradle file).
25+
Add codes below to your**root**`build.gradle` file (not your module build.gradle file).
2626
```gradle
2727
allprojects {
2828
repositories {
@@ -56,7 +56,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto"
5656
```
5757

5858
####OnClick Method
59-
All of ElasticViews should be set`OnClickListener` orOnClick method. If not, nothing happens.
59+
All of ElasticViews should be set`OnClickListener` or`onClick` method. If not, nothing happens.
6060
```java
6161
ElasticButton elasticButton= (ElasticButton)findViewById(R.id.elasticbutton);
6262
elasticButton.setOnClickListener(newView.OnClickListener() {
@@ -107,7 +107,7 @@ elasticButton.setOnClickListener(new View.OnClickListener() {
107107
app:imageView_duration="300" />
108108
```
109109

110-
###ElasticFloatingButton
110+
###ElasticFloatingActionButton
111111
```gradle
112112
<com.skydoves.elasticviews.ElasticFloatingActionButton
113113
android:layout_width="64dp"
@@ -214,9 +214,9 @@ elasticAnimation(this) {
214214
setScaleX(scale)
215215
setScaleY(scale)
216216
setOnFinishListener(object:ElasticFinishListener {
217-
overridefunonFinished() {
218-
onClick()
219-
}
217+
overridefunonFinished() {
218+
onClick()
219+
}
220220
})
221221
}.doAction()
222222
```
@@ -244,12 +244,12 @@ So also we can implement animation on listView's items like below.
244244
privateclassListViewItemClickListenerimplementsAdapterView.OnItemClickListener {
245245
@Override
246246
publicvoidonItemClick(AdapterView<?>adapterView,ViewclickedView,finalintpos,longid) {
247-
newElasticAnimation(clickedView).setScaleX(0.9f).setScaleY(0.9f).setDuration(400)
247+
newElasticAnimation(clickedView).setScaleX(0.9f).setScaleY(0.9f).setDuration(400)
248248
.setOnFinishListener(newElasticFinishListener() {
249249
@Override
250250
publicvoidonFinished() {
251-
//Do something after duration time
252-
Toast.makeText(getBaseContext(),"ListViewItem"+ pos,Toast.LENGTH_SHORT).show();
251+
//Do something after duration time
252+
Toast.makeText(getBaseContext(),"ListViewItem"+ pos,Toast.LENGTH_SHORT).show();
253253
}
254254
}).doAction();
255255
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp