Instead of the verbose setOnClickListener
:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));
Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication2 | |
{ | |
class Program |
public class Log4NetFileHelper | |
{ | |
private string DEFAULT_LOG_FILENAME=string.Format("application_log_{0}.log",DateTime.Now.ToString("yyyyMMMdd_hhmm")); | |
Logger root; | |
public Log4NetFileHelper() | |
{ | |
} | |
public virtual void Init() |
public interface BaseView { | |
} |
Functional Programming
is a model of programming that transform and compose stream of immutable sequences by applying map, filter and reduce. Events are immutable because you can't change history.Reactive Programming
is a model of programming focuses on data flow and change propagation.ReactiveX
is an API that focuses on asynchronous composition and manipulation of observable streams of data or events by using a combination of the Observer pattern, Iterator pattern, and features of Functional Programming.RxJava
is the open-source implementation of ReactiveX
in Java.RxJava
is a Java VM implementation of ReactiveX
(Reactive Extensions): a library for composing asynchronous and event-based programs by using observable sequences.RxAndroid
is a lightweight extension to RxJava that providers a Scheduler for Android’s Main Thread, as well as the ability to create a Scheduler that runs on any given Android Handler class.Observable
and Subscriber
.release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
zipAlignEnabled true | |
} |
release{ | |
//... | |
shrinkResources true | |
//... | |
//.. | |
} |
package com.tutored.tutored.ui.userprofile.academicsQualification; | |
import android.view.View; | |
import com.pask.data.model.AcademicQualification; | |
import com.pask.data.model.dto.MessageEventDTO; | |
import com.pask.ui.userprofile.ExperienceFragment; | |
import com.pask.ui.userprofile.ExperienceRecyclerViewAdapter; | |
import com.pask.utils.TextUtils; |
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.AppBarLayout | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:theme="@style/AppTheme.AppBarOverlay" | |
android:id="@+id/appbar"> | |
<android.support.v7.widget.Toolbar |