rippledrawable Questions

2

I have been trying to trace this issue for a while now. I think I did find an explanation some time ago. Unfortunately, its lost in code-comments somewhere. I am trying to create a Material Border...
Brachyuran asked 9/5, 2015 at 17:32

2

<?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:attr/colorControlHighlight"> <item> <select...
Cuckoopint asked 20/4, 2017 at 23:32

6

Solved

I added a ripple effect on a ImageButton, however it is hidden by an ImageView used as a background for the parent view RelativeLayout. Here's the layout file: <RelativeLayout xmlns:android="h...
Photostat asked 11/8, 2015 at 17:25

11

Solved

How can I have a ripple effect in a simple linear/relative layout when touching the layout? I've tried setting the background of a layout to something like: <?xml version="1.0" encoding="utf-8...
Readability asked 18/11, 2014 at 23:38

5

Solved

I'm trying to implement ripple effect in a RelativeLayout on API 22 but it doesn't show up. However the same ripple works in a Button. The code for my ripple drawable is as follows: <?xml vers...
Ardolino asked 11/8, 2015 at 11:17

4

Solved

I am using rippleeffect library for my project. But in Android Nougat and Marshmallow, App crashes due to this library: compile 'com.github.traex.rippleeffect:library:1.3' The error message is: ...
Willemstad asked 30/12, 2016 at 3:51

4

Solved

I have the following code for my ripple: <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHig...
Letti asked 5/1, 2015 at 21:4

13

Solved

Background On the dialer app of Android, when you start searching for something, and you click the arrow button on the left of the EditText, you get a circular ripple effect on it : The problem...
Nealy asked 11/8, 2015 at 12:26

4

Solved

I want to use ripple effects on Buttons. AppCompat v22.1 added AppCompatButton and new functionalities to AppCompat tinting. My Layout: <android.support.v7.widget.AppCompatButton android:id="...
Bulldog asked 27/4, 2015 at 8:23

6

This is a short question: Suppose I have a View with the RippleDrawable as background. Is there an easy way to trigger the ripple from a specific position without triggering any touch or click ev...
Thirlage asked 1/12, 2014 at 9:13

13

Solved

I created a button and I want to add ripple effect to that button! I created a button bg XML file: (bg_btn.xml) <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape=...
Cribble asked 12/10, 2016 at 21:25

5

Solved

To describe my problem i created small example. I have linearlayout with imageview and textview. For linearlayout i've set ripple drawable as background. But when i click or long click on linearla...
Sarcoma asked 28/12, 2016 at 14:15

2

Solved

it is possible to create a RippleDrawable defining an unbounded ripple and at the same time a background color? I've tried everything but when i define a shape and its color the ripple is not unbou...
Foetus asked 20/11, 2014 at 19:17

6

Okay, so I understood ripple effect is only available LOLLIPOP and up. But, still, when setting up my ImageButton, I fail to get a nice ripple effect that would work like a "regular" Button, just s...
Duvall asked 15/12, 2016 at 13:55

3

Solved

I've seen some solutions here, but none of them works for me. I am using View.OnTouchListener class to detect click and drag events in my app code. But that beautiful ripple effect is now gone (per...

3

Solved

I am using a custom ripple drawable <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/c...
Maag asked 7/8, 2016 at 12:7

3

Solved

I'm trying to use the default android action bar with a custom view: <style name="ActionBar" parent="android:Widget.Material.ActionBar.Solid"> <item name="android:displayOptions">show...
Eatables asked 18/8, 2019 at 17:19

1

I'm trying to create a ripple with rounded corners for the Drawer items. However, I can't figure out how to achieve that. I tried to create a custom ripple and assign it to the NavigationView throu...
Proconsul asked 17/4, 2019 at 23:7

2

Solved

I have a button in my app and I want to give a continuous /infinite ripple effect for that button . how to give infinite ripple effect on button without on click in android.
Bran asked 23/3, 2016 at 12:6

6

I am using selectableItemBackgroundBorderless to add a ripple to an ImageView. My expected behaviour would be to have a circular ripple, extending the views size. Unfortunately the ripple gets crop...

10

Solved

I would love to enable touch feedback for my Open-Source library. I've created a RecyclerView and a CardView. The CardView contains different areas with different onClick actions. Now I would love...

4

Solved

I am using the following shape in my app <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="t...
Soniasonic asked 4/4, 2015 at 10:30

4

Solved

I try to use padding to increase the touch area of a button. I use <ImageButton android:paddingRight="32dp" android:paddingEnd="32dp" android:id="@+id/confirm_image_button" android:layout_w...

5

Solved

How to apply ripple effect like this i have put the dependencies in app/build.gradle app/build.gradle dependencies { compile 'com.github.traex.rippleeffect:library:1.3' } build.gradle allpro...
Assuage asked 10/6, 2015 at 15:30

2

I'm using a third party library, there is a method using DrawableCompat.setTintMode(drawable, PorterDuff.Mode.SRC_IN);. When I test my app in android 5.0+,there was no problem and worked well.But w...
Beanstalk asked 9/5, 2016 at 5:57

© 2022 - 2024 — McMap. All rights reserved.