Last active
September 21, 2017 04:55
-
-
Save Atternatt/ad738026840c3f15e6340cfbcda07e83 to your computer and use it in GitHub Desktop.
Kotlin Extension Usages
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
bundle?.let { intent.putExtras(it) } //si el bundle no es null, lo añadimos como extra al intent | |
//crear un animationSet al estilo builder | |
val animationSet = AnimatorSet().apply { | |
playTogether(animX, animY) | |
duration = 350 | |
interpolator = FolioBounceInterpolator() | |
}.start() |
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
val cipherInputStream = CipherInputStream(ByteArrayInputStream(Base64.decode(encriptedValue, Base64.DEFAULT)), output) | |
val readResult = cipherInputStream.bufferedReader().use { it.readText() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment