Add actions for setting TextView text.

Takes care of https://github.com/ReactiveX/RxAndroid/issues/80
Bah I'll fix it to be consistent. Nice catch.

On Tue, Nov 25, 2014, 17:29 Jake Wharton <notifications@github.com> wrote:

> In rxandroid/src/main/java/rx/android/view/ViewActions.java:
>
> > @@ -112,4 +112,28 @@ private ViewActions() {
> >      public static Action1<? super Boolean> setVisibility(View view, int visibilityOnFalse) {
> >          return new ViewActionSetVisibility(view, visibilityOnFalse);
> >      }
> > +
> > +    /**
> > +     * Set the text of a {@link TextView} based on values emitted by an Observable.
> > +     */
> > +    public static Action1<? super CharSequence> setText(final TextView textView) {
> > +        return new Action1<CharSequence>() {
> > +            @Override
> > +            public void call(CharSequence charSequence) {
> > +                textView.setText(charSequence);
>
> Ugh. Yeah we should match though I'm not a fan of the whole
> weak-reference-all-the-things movement.
>
> Also, all these others are not only using explicit top-level types for
> their actions but they're public... where's the facepalm emoji?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ReactiveX/RxAndroid/pull/85/files#r20902075>.
>