Questions tagged [rippledrawable]

Using RippleDrawable, users will no longer have a button (for example) that simply changes colors when pressed; instead, that button will respond with ripples and waves when users interact with it.

Using RippleDrawable, users will no longer have a button (for example) that simply changes colors when pressed; instead, that button will respond with ripples and waves when users interact with it.

The design principle is shown at https://material.io/design/motion/.

184 questions
0
votes
0 answers

Android Button - CustomView

I'm working on custom button view. But I've some problems when I try to add a stroke to GradientDrawable. This is the java code: protected void onFinishInflate() { float[] radii = null; if (mButtonCornerRadius > 0) { radii = new…
CeccoCQ
  • 3,746
  • 12
  • 50
  • 81
0
votes
1 answer

Android ripple effect, customise the ripple effect overlay layer

I want to customise a ripple effect. I have this xml
David Safrastyan
  • 725
  • 7
  • 18
0
votes
1 answer

Android - Ripple effect over custom ImageView on GridView

In my Android app I have a GridView which displays a set of images, each one in a custom subclass of ImageView (TickedImageView), which displays a tick when the image is selected. What I want to achieve is to display a ripple when the image gets…
fergaral
  • 2,077
  • 6
  • 17
  • 34
0
votes
1 answer

Strange glitches when using "Pull to refresh"

When I launch my activity i refresh my list with swipeContainer.setRefreshing(true); after refreshing is call swipeContainer.setRefreshing(false); But during the networkcalls The refreshIcon glitches, in a fraction of a second and If I look to the…
vanlooverenkoen
  • 2,121
  • 26
  • 50
0
votes
1 answer

ImageButton is missing when drawable-v21 is added

To include ripple effect for my ImageButton I created drawable-v21 folder in res and added the following code ans_go_btn.xml :-
Shree Harsha S
  • 665
  • 7
  • 14
0
votes
2 answers

How to use ripple in eclipse?

I am using eclipse luna as IDE.I try to search how to use ripple but all of the results need gradle since they are using android studio.So,do you know how to use ripple in eclipse?Thank in advance.
nanda
  • 161
  • 1
  • 10
0
votes
1 answer

Why does heap size keep increasing?

I have an application that has a lot of ripple effects and animations. I tried going back and forth multiple screens, and also spam clicking buttons. I noticed that the heap size continuously goes up even though some screens have already been…
John Ernest Guadalupe
  • 6,379
  • 11
  • 38
  • 71
0
votes
1 answer

Android: Is there a way to have lollipop press animation with jellybean min sdk

I'm currently writing an android app. I want the minimum sdk to support jelly bean devices, so I set the min sdk to 17. Everything works, but the pressing animation on buttons and etc. are all the older animations. Is it possible to have the new…
0
votes
1 answer

listview item row with textview and imagebutton only show ripple effect on imagebutton

I have my listview, with a text and a ImageButton near to it, should be on the right side in the future. I want to see a ripple effect when i touch on the text or white field. How can i do this? At the moment, theres only a ripple effect when i…
user4546546
0
votes
2 answers

prevent shortClick when longClick pressed

I want to cancel shortClick when LongClicked an item, I'm using ripple effect material-ripple library in list view but when i long press list item it also call onClick-event list.setOnItemClickListner not work with MaterialRippleLayout on row…
0
votes
1 answer

How to run Android 'L Preview app' on lowest device (previous) version?

I am currently working on Android Studio. My doubt is, how to run Android Studio - "L preview" apps on lowest version devices like Android 2.2 , Android 2.3.3 (API 10) so on. My 'L preview' app runs well in an emulator when I use current…
Achiever
  • 1,626
  • 10
  • 30
  • 54
-1
votes
3 answers

Add dividers and ripple effect for each GridLayout square

I am using RecyclerView + GridLayout (3 columns). Now to make each square of the grid more "responsive", I want that each square will show some sort of divider, and that there will be a ripple effect within each square that the user clicks. Edit : I…
pileup
  • 1
  • 2
  • 18
  • 45
-1
votes
2 answers

How to achieve an "overflowing" riplle-effect in android

I saw this kind of riplle effect in YouTube's android app. I want to get the same effect working in my app. Should I create an own Ripple-Drawable or is there a different approach? Actually I already tried "?attr/selectableItemBackground" but the…
laim2003
  • 299
  • 4
  • 19
-1
votes
1 answer

Ripple animation of ListView item won't work by click on containing TextView

I have a custom adapter set for my ListView. I have also set the default item selection ripple animation to appear when an item is selected (android:background="?android:selectableItemBackground"). However, the animation won't appear when I tap the…
Akres
  • 126
  • 2
  • 16
-2
votes
1 answer

Android: How correctly to create buttons which are incorporated in a single visual element?

I received such a layout: How correctly to make such, not using the Custom View? Or is this the only way to solve the problem? I'm not sure how this design solution is called, so Google has not helped much. I have a strong desire to program this in…
1 2 3
12
13