예제 #1
0
        public EditTextViewTextBinding(KXObservable observable, TextView textView)
        {
            _observable = observable;
            _textView = textView;

            _subscription = observable.Subscribe();
            _subscription.OnChange = OnModelChange;
            textView.AfterTextChanged += OnViewChange;
        }
예제 #2
0
 public TextViewTextBinding(KXObservable observable, TextView textView)
 {
     _subscription = observable.Subscribe();
     _subscription.OnChange = value => textView.Text = value;
 }