(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| dependencies { | |
| compile 'io.reactivex:rxjava:1.0.12' | |
| compile 'com.squareup.okhttp:okhttp:2.5.0' | |
| compile 'com.squareup.retrofit:retrofit:2.0.0-beta1' | |
| compile 'com.squareup.retrofit:converter-gson:2.0.0-beta1' | |
| compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta1' | |
| } |
| package com.segmentfault.app.view; | |
| import android.content.Context; | |
| import android.support.v4.view.MotionEventCompat; | |
| import android.support.v4.view.NestedScrollingChild; | |
| import android.support.v4.view.NestedScrollingChildHelper; | |
| import android.support.v4.view.ViewCompat; | |
| import android.support.v4.widget.SwipeRefreshLayout; | |
| import android.util.AttributeSet; | |
| import android.view.MotionEvent; |
| /* | |
| * Copyright (C) 2014 darnmason | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.