button - RippleView effect on view appears late android -
i using com.andexert.library.rippleview
library 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
Post a Comment