Java Code Examples for com.jakewharton.rxbinding.widget.RxTextView#textChanges()
The following examples show how to use
com.jakewharton.rxbinding.widget.RxTextView#textChanges() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RemedyFragment.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerSearchObservable() { return RxTextView.textChanges(searchRemedyEditText); }
Example 2
Source File: VideoCommentsFragment.java From Loop with Apache License 2.0 | 4 votes |
@Override public void onViewCreated(final View view, Bundle bundle) { super.onViewCreated(view, bundle); ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar); ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle(TrestleUtility.getFormattedText(getString(R.string.comments), font)); } setUpListeners(); recyclerView.setItemAnimator(new SlideInUpAnimator()); LinearLayoutManager layoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false); layoutManager.setStackFromEnd(true); // layoutManager.setReverseLayout(true); recyclerView.setLayoutManager(layoutManager); recyclerView.setItemAnimator(new SlideInUpAnimator()); videoCommentsAdapter = new VideoCommentsAdapter(getActivity()); videoCommentsAdapter.setOnItemLongClickListener(this); // List<Comment> comments = mSale.getComments(); // if (comments != null && comments.size() > 0) { // Collections.reverse(comments); // mVideoCommentsAdapter.addAll(comments); // } recyclerView.setAdapter(videoCommentsAdapter); recyclerView.scrollToPosition(videoCommentsAdapter.getItemCount() - 1); // if (commentsCollection != null) { //// loadComments(); // // List<Comment> comments = commentsCollection.getComments(); // if (comments != null && comments.size() > 0) { // // Collections.reverse(comments); // videoCommentsAdapter.addAll(comments); // recyclerView.scrollToPosition(videoCommentsAdapter.getItemCount() - 1); //// //// mVideoCommentsAdapter.addAll(comments); // // if (comments.size() >= PAGE_SIZE) { //// mVideoCommentsAdapter.addLoading(); // } else { // isLastPage = true; // } // } // } else { // // } commentChangeObservable = RxTextView.textChanges(commentEditText); // Checks for validity of the comment input field setUpCommentSubscription(); long id = video.getId(); if (id != -1L) { loadingImageView.setVisibility(View.VISIBLE); videoId = id; Call getCommentsCall = vimeoService.getComments(videoId, sortByValue, sortOrderValue, currentPage, PAGE_SIZE); calls.add(getCommentsCall); getCommentsCall.enqueue(getCommentsFirstFetchCallback); } }
Example 3
Source File: EditProfileActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerBioObservable() { return RxTextView.textChanges(aboutEditText); }
Example 4
Source File: EditProfileActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerCepObservable() { return RxTextView.textChanges(cepEditText); }
Example 5
Source File: EditProfileActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerEmailObservable() { return RxTextView.textChanges(emailEditText); }
Example 6
Source File: EditProfileActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerBirthDateObservable() { return RxTextView.textChanges(birthDateEditText); }
Example 7
Source File: EditProfileActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerNameObservable() { return RxTextView.textChanges(nameEditText); }
Example 8
Source File: EmergencyFragment.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerSearchEditTextObserver() { return RxTextView.textChanges(searchRemedyEditText); }
Example 9
Source File: TotalCostView.java From Defrag with Apache License 2.0 | 4 votes |
@NonNull @Override public Observable<CharSequence> onTotalCostChanged() { return RxTextView.textChanges(editText); }
Example 10
Source File: EstablishmentFragment.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerSearchEditTextObserver() { return RxTextView.textChanges(searchRemedyEditText); }
Example 11
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerRePasswordObservable() { return RxTextView.textChanges(confirmPasswordEditText); }
Example 12
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerPasswordObservable() { return RxTextView.textChanges(passwordEditText); }
Example 13
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerCepObservable() { return RxTextView.textChanges(cepEditText); }
Example 14
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerEmailObservable() { return RxTextView.textChanges(emailEditText); }
Example 15
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerBirthDateObservable() { return RxTextView.textChanges(birthDateEditText); }
Example 16
Source File: RegisterActivity.java From Saude-no-Mapa with MIT License | 4 votes |
@Override public Observable<CharSequence> registerNameObservable() { return RxTextView.textChanges(nameEditText); }
Example 17
Source File: ClearableEditText.java From HandyWidgets with MIT License | 2 votes |
/** * Create an observable of character sequences for text changes on {@code view}. * <p> * <em>Warning:</em> The created observable keeps a strong reference to {@code view}. * Unsubscribe * to free this reference. * <p> * <em>Note:</em> A value will be emitted immediately on subscribe. */ @CheckResult @NonNull public Observable<CharSequence> textChanges() { return RxTextView.textChanges(mEditText); }