-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from alexandregpereira/dev
Spring animations and Jerry APIs
- Loading branch information
Showing
64 changed files
with
3,907 additions
and
790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...in/java/br/alexandregpereira/jerry/app/animation/CollapseFadingSpringAnimationActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package br.alexandregpereira.jerry.app.animation | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import br.alexandregpereira.jerry.app.R | ||
import br.alexandregpereira.jerry.expandable.collapseHeightFadingSpring | ||
import br.alexandregpereira.jerry.expandable.collapseWidthFadingSpring | ||
import br.alexandregpereira.jerry.expandable.expandHeightFadingSpring | ||
import br.alexandregpereira.jerry.expandable.expandWidthFadingSpring | ||
import kotlinx.android.synthetic.main.activity_collapse_fading_animation.* | ||
|
||
class CollapseFadingSpringAnimationActivity : AppCompatActivity() { | ||
|
||
companion object { | ||
fun getStartIntent(context: Context): Intent { | ||
return Intent(context, CollapseFadingSpringAnimationActivity::class.java) | ||
} | ||
} | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_collapse_fading_animation) | ||
|
||
collapseFadingLabel.setText(R.string.collapse_fading_spring) | ||
|
||
collapseFadingTextButton.setOnClickListener { | ||
collapseFadingTextView.collapseHeightFadingSpring() | ||
} | ||
|
||
collapseExpandFadingTextButton.setOnClickListener { | ||
collapseFadingTextView.expandHeightFadingSpring() | ||
} | ||
|
||
collapseFixedFadingTextButton.setOnClickListener { | ||
collapseFixedFadingTextView.collapseHeightFadingSpring() | ||
} | ||
|
||
collapseExpandFixedFadingTextButton.setOnClickListener { | ||
collapseFixedFadingTextView.expandHeightFadingSpring() | ||
} | ||
|
||
collapseWidthFadingTextButton.setOnClickListener { | ||
collapseWidthFadingTextView.collapseWidthFadingSpring() | ||
} | ||
|
||
collapseExpandWidthFadingTextButton.setOnClickListener { | ||
collapseWidthFadingTextView.expandWidthFadingSpring() | ||
} | ||
|
||
collapseMatchWidthFadingButton.setOnClickListener { | ||
collapseMatchWidthFadingView.collapseWidthFadingSpring() | ||
} | ||
|
||
collapseExpandMatchWidthFadingButton.setOnClickListener { | ||
collapseMatchWidthFadingView.expandWidthFadingSpring() | ||
} | ||
|
||
collapseFixedWidthFadingButton.setOnClickListener { | ||
collapseFixedWidthFadingView.collapseWidthFadingSpring() | ||
} | ||
|
||
collapseExpandFixedWidthFadingButton.setOnClickListener { | ||
collapseFixedWidthFadingView.expandWidthFadingSpring() | ||
} | ||
} | ||
} |
Oops, something went wrong.