Created
March 11, 2016 12:44
-
-
Save pwittchen/3f45a27589d4624d1cbb to your computer and use it in GitHub Desktop.
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
@Override protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
info = (TextView) findViewById(R.id.info); | |
swipe = new Swipe(); | |
subscription = swipe.observe() | |
.subscribeOn(Schedulers.computation()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(new Action1<SwipeEvent>() { | |
@Override public void call(final SwipeEvent swipeEvent) { | |
info.setText(swipeEvent.toString()); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment