You can use the default ripple effect instead of the custom ripple. Then add the ripple.xml drawable with ripple into res/drawable-v21: ![]() Note that this shows a semi-transparent color on top of the image when the item is selected (for devices with version older than Android 5.0). Then add a ripple.xml drawable into res/drawable: I've tried without android:clickable="true" and android:focusable="true" and it also works, but it doesn't hurt. To add a ripple to the image I've wrapped the ImageView with a FrameLayout. It includes a lot of templates, so we will have ideas the first time we run it, we can mix the different images, add filters. ![]() We can personalize it including in the interface the toolbars we think fit us better. I have an image gallery (built with a RecyclerView and a GridLayoutManager). Ulead Photo Impact includes a lot of features, what make it a very good choice when trying to get the best editor. Configuring another transparent ImageView on top of this one, but since it was transparent ripple wasn't shown.Īny ideas? I've seen Lollipop Contacts made this as well.Changing android:background to android:foreground, which didn't work. ![]() I guess that the bitmap hides the ripple effect, how can I make it visible? Already tried: But once I set a bitmap like this, ripple effect is gone: ImageView iv=((ImageView)rootView.findViewById(R.id.header)) Ripple works great if I don't set a bitmap to the image view.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |