RippleEffect icon indicating copy to clipboard operation
RippleEffect copied to clipboard

java.lang.IllegalStateException: Underflow in restore - more restores than saves

Open pishguy opened this issue 9 years ago • 12 comments
trafficstars

java.lang.IllegalStateException: Underflow in restore - more restores than saves at android.graphics.Canvas.native_restore(Native Method) at android.graphics.Canvas.restore(Canvas.java:540) at com.andexert.library.RippleView.draw(RippleView.java:166)

<com.andexert.library.RippleView
    android:id="@+id/market_list_as_grid_view"
    rv_centered="true"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_toRightOf="@+id/icon_list_as_two_column">
    <com.joanzapata.iconify.widget.IconTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="8dp"
        android:gravity="center"
        android:paddingBottom="5dp"
        android:paddingLeft="5dp"
        android:paddingTop="8dp"
        android:shadowColor="#000000"
        android:text="{fa-th-large}"
        android:textColor="#ffffff"
        android:textSize="23sp"/>
</com.andexert.library.RippleView>

pishguy avatar Aug 30 '16 06:08 pishguy

@tux-world You can see this commit : https://github.com/traex/RippleEffect/commit/df5f9e4456eae8a8e98e2827a3c6f9e7185596e1

The crash is be solved.

ruijun avatar Sep 01 '16 06:09 ruijun

@ruijun .The fix is not live yet.I am also facing the same.I hope we have to wait for the next release.

sohambannerjee8 avatar Sep 23 '16 09:09 sohambannerjee8

same here not solved crashed on two emulators solve it so that i could use in my app otherwise effects are awesome

gautam2682 avatar Oct 04 '16 10:10 gautam2682

same issue...waiting for new release...when it will come live?????

abhiataero avatar Oct 12 '16 08:10 abhiataero

same issue...waitint for fix,android os 6.0.1

<com.andexert.library.RippleView android:id="@+id/rv_my_address" android:layout_below="@id/rv_my_favorite" android:layout_width="match_parent" android:layout_height="wrap_content">

  <RelativeLayout
      android:id="@+id/rl_my_address"
      android:paddingLeft="@dimen/dimen_15dp"
      android:background="@drawable/selector_tab"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dimen_44dp">

     <ImageView
         android:id="@+id/im_my_address"
         android:layout_width="@dimen/dimen_20dp"
         android:layout_height="@dimen/dimen_20dp"
         android:layout_centerVertical="true"
         android:src="@mipmap/icon_address" />

     <TextView
         android:id="@+id/tv_my_address"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_centerVertical="true"
         android:layout_marginLeft="@dimen/dimen_10dp"
         android:layout_toRightOf="@id/im_my_address"
         android:text="@string/tv_my_address"
         android:textColor="@color/text_color_63"
         android:textSize="@dimen/text_size_15" />

     <ImageView
         android:id="@+id/iv_address_arrow_right"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignBaseline="@id/im_my_address"
         android:layout_alignParentRight="true"
         android:layout_marginRight="16dp"
         android:layout_centerVertical="true"
         android:background="@mipmap/arrow_right" />

  </RelativeLayout>

   </com.andexert.library.RippleView>

feng612266 avatar Nov 23 '16 00:11 feng612266

Hey, I just released a fix. Check it out: https://github.com/patrickpissurno/RippleEffect/

patrickpissurno avatar Jan 25 '17 17:01 patrickpissurno

@patrickpissurno looks like your fix is working!! Thank you! :)

mmchougule avatar Jan 31 '17 05:01 mmchougule

@patrickpissurno THNX!

CelticParser avatar Feb 09 '17 21:02 CelticParser

@patrickpissurno, it is working. Thank you.

thineshvp avatar Jul 07 '17 10:07 thineshvp

Thanks a lot now it's working fine. I was just about to leave this lib and finally I found the solution. Thanks buddy 👍

alikhan-codersranch avatar Jan 27 '18 12:01 alikhan-codersranch

Thanks buddy, Really helped...

afinas-em avatar Jan 30 '18 11:01 afinas-em

Thanks! It works!

shenbuqingyun avatar Nov 16 '18 06:11 shenbuqingyun