button - RippleView effect on view appears late android -


i using com.andexert.library.rippleviewlibrary here's a link

its working not expected . ripple effect appears late i.e; when click on textview activity gets launched , ripple effect appears on textview of previous activity.

also shows error " cannot resolve method setonripplecompletelistener() "

xml file

<com.andexert.library.rippleview         android:id="@+id/ripple_view"         android:layout_width="match_parent"         android:layout_height="wrap_content"         rv_centered="true"         android:padding="0dp"         android:layout_alignparentbottom="true">      <com.techmorphosis.utils.textviewcustomfont         android:id="@+id/txt_lets_go"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:textcolor="@color/white_text"         android:background="@drawable/purple_button_bg"         android:gravity="center"         android:padding="10dp"         android:text="@string/lets_go"         android:textsize="@dimen/textsize_medium" />      </com.andexert.library.rippleview> 

java file

rippleview.setonripplecompletelistener(new rippleview.onripplecompletelistener() {             // @override             public void oncomplete(rippleview rippleview) {                 log.d("sample", "ripple completed");             }          }); 

i solved placing view id's click event inside rippleview.setonripplecompletelistener

eg :

rippleviewnavigation.setonripplecompletelistener(new rippleview.onripplecompletelistener() {                     @override                     public void oncomplete(rippleview rippleview) {  if(id==r.id.txt_open){ // stuffs here } } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -