Skip to content

Instantly share code, notes, and snippets.

@gavelez
gavelez / PlayingWithPaths.kt
Created Sep 2, 2020 — forked from alexjlockwood/PlayingWithPaths.kt
Implementation of a 'Playing with Paths' polygon animation
View PlayingWithPaths.kt
package com.alexjlockwood.playingwithpaths
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.animatedFloat
import androidx.compose.animation.core.AnimationConstants
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.repeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
@gavelez
gavelez / RxJava.md
Created Aug 20, 2017 — forked from cesarferreira/RxJava.md
Party tricks with RxJava, RxAndroid & Retrolambda
View RxJava.md

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

Observable
    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)