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)| with separators as ( values (' '), (','), ('-'), ('.') ), | |
| source (s) as ( select " Will, thought and action." ), | |
| bag (q) as ( -- POSITIONS OF ALL SEPARATORS | |
| with dim (len) as ( select length(s) from source ), | |
| ndx (n) as ( | |
| select 1 union all select n+1 from ndx, dim where n < len | |
| ) select 0 --> PSEUDO SEPARATOR IN FRONT OF SOURCE STRING | |
| union all select n from ndx, source where substr(s, n, 1) in separators | |
| union all select len+1 from dim --> PSEUDO SEPARATOR AT BOTTOM | |
| ), |
| META-INF/ | |
| *.class |