- General
- Mastering Observable - http://docs.couchbase.com/developer/java-2.0/observables.html
- Android
- Grokking RxJava, Part 1-4 - http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/
- Loading data from multiple sources with RxJava - http://blog.danlew.net/2015/06/22/loading-data-from-multiple-sources-with-rxjava/
- Don't break the chain: use RxJava's compose() operator - http://blog.danlew.net/2015/03/02/dont-break-the-chain/
- Pro RxJava
- Hot and Cold Observable - http://davesexton.com/blog/post/Hot-and-Cold-Observables.aspx
- To use subject or not to use subject - http://davesexton.com/blog/post/To-Use-Subject-Or-Not-To-Use-Subject.aspx
- RxJava Threading Examples - http://www.grahamlea.com/2014/07/rxjava-threading-examples/
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
import android.app.Activity; | |
import android.content.Context; | |
import android.os.IBinder; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.view.View; | |
import android.view.inputmethod.InputMethodManager; | |
import timber.log.Timber; |
- Core:
- RxJava - https://github.com/ReactiveX/RxJava
- RxAndroid - https://github.com/ReactiveX/RxAndroid
- RxBinding - https://github.com/JakeWharton/RxBinding
- Applied Duality - http://www.applied-duality.com/
- Network:
- Retrofit - https://github.com/square/retrofit
- Storage:
- SqlBrite - https://github.com/square/sqlbrite
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
public class LogObserver<T> implements Observer<T> { | |
private final String tag; | |
public LogObserver(String tag) { | |
this.tag = tag; | |
} | |
@Override public void onCompleted() { | |
System.out.println(tag + " onCompleted"); |
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
// SegmentedEditText is horizontal linear layout contains 6 edit texts | |
public class SegmentedEditText extends LinearLayout { | |
public SegmentedEditText(Context context) { | |
super(context); | |
LayoutInflater inflater = LayoutInflater.from(context); | |
for (int i = 0; i < 6; i++) { | |
// have to do next: | |
EditText editText = (EditText) inflater.inflate(R.layout.partial_segmented_edittext, this, false); | |
addView(editText); |
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
@MultipartBody | |
public class Article { | |
String author; | |
File photo; | |
} |
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
def publishDropboxTask = project.tasks.create("publishDropbox") | |
android.applicationVariants.all { variant -> | |
TODO: made dropbox task work with new variant output API | |
variant.outputs.each { output -> | |
def publishDropboxVariantTask = project.tasks.create("publishDropbox${variant.name.capitalize()}", Copy) | |
publishDropboxVariantTask.from(output.outputFile) | |
publishDropboxVariantTask.into(file(PUBLISH_FOLDER)) | |
publishDropboxVariantTask.dependsOn variant.assemble | |
publishDropboxTask.dependsOn publishDropboxVariantTask |
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
androidTestCompile("com.android.support.test.espresso:espresso-core:2.0"){ | |
// avoid conflict with dagger transitive dependency | |
exclude group: 'javax.inject' | |
} |
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
public class Vim430TestCase extends TestCase { | |
private ObjectMapper objectMapper; | |
@Override protected void setUp() throws Exception { | |
super.setUp(); | |
objectMapper = ObjectMapperFactory.create(); | |
} | |
public void testMapping() { |
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
# | |
# https://gist.github.com/plastiv/7053530 | |
# | |
# Base configuration taken from https://github.com/github/gitignore/blob/master/Android.gitignore | |
# | |
# Eclipse project files | |
.classpath | |
.project | |
.settings/ | |
.metadata/ |
NewerOlder