This file contains hidden or 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
/** | |
* RxJava based broadcast reciever that registers its local BroadcastReceiver until end of subscription. | |
* Listens for update and passes Intent to the Stream (Subscriber). | |
* | |
* Copyright 2016 Mateusz Perlak - http://www.apache.org/licenses/LICENSE-2.0 | |
* Created on 11/18/16. | |
*/ | |
public class RxBroadcastReceiver implements ObservableOnSubscribe<Intent> { | |
protected final WeakReference<Context> contextWeakReference; |
This file contains hidden or 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
{ | |
"data": [{ | |
"view_type": "viewpager", | |
"section_title": "New items", | |
"section_data": [{ | |
"image": "https://dummyimage.com/600x400/000/fff" | |
}, { | |
"image": "https://dummyimage.com/600x400/000/fff" | |
}, { | |
"image": "https://dummyimage.com/600x400/000/fff" |
This file contains hidden or 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
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.util.Log; | |
import com.squareup.picasso.MemoryPolicy; | |
import com.squareup.picasso.Picasso; | |
import com.squareup.picasso.RequestCreator; |
OlderNewer