Skip to main content

All Questions

0 votes
1 answer
46 views

How can i set animation position in custom view for xml preview

I created a custom view that is invisible at first and it will be visible after the animation is completed. the problem is when I want to use it in xml layout, the preview shows nothing because the ...
Ehsan Msz's user avatar
  • 2,144
0 votes
1 answer
103 views

Why does the ProgressBar keep spinning even if the Thread.sleep() was called?

I made a custom view with animation using ValueAnimator and noticed that when performing some heavy operations (which, for some reason, cannot be moved to another thread), the animation freezes. And ...
Elizaveta Mikhailova's user avatar
2 votes
1 answer
7k views

Custom Bottom Navigation library round selector

I found those two library but they are for flutter, are those similar library for Android native. Or how can I replicate this behavior, animate the bottom nav bar. The first library is: ...
Dr4ke the b4dass's user avatar
0 votes
1 answer
120 views

Animation On Custom View Android

I have created a custom view shows below I want to add an animation to the element when the user clicks on each color the color should pop down and pop up some part of custom view code override ...
Aseem Salim's user avatar
1 vote
1 answer
116 views

Calling animation in custom view's Kotlin class from Java activity class

I have a Java Activity class that contains a custom view which is written in Kotlin @BindView(R.id.icon) Icon icon; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
Canberk Ozcelik's user avatar
2 votes
1 answer
1k views

How can achieve this custom view wave animation?

I'm trying to achieve this custom wave animation with circle in the middle of the wave. Below is my custom view. It runs in a different direction and the draw has a line in the middle of the wave ...
Enzo Lizama's user avatar
  • 1,315
1 vote
0 answers
124 views

How to animate curved area of a custom view?

I'm setting up a custom Bézier view. I want to add some animation to the curved area, an animation like expansion/reveal effect to the curved area from plain area of the view. I succeeded in creating ...
Vipin's user avatar
  • 59
6 votes
2 answers
239 views

Add fading animation to HexagonLoadingView

I have used a hexagon loader as below based on library https://github.com/Agraphie/hexagonloadingview. But I need slightly different animation with the above library. Like https://codepen.io/wuser/...
SRBhagwat's user avatar
  • 1,521
0 votes
1 answer
159 views

ValueAnimator behaviour changes when AdView shows in

I've made a custom view for visualizes the progress. It has a simple intro animation like the below : PropertyValuesHolder c=PropertyValuesHolder.ofInt("c",0,100); ValueAnimator anim=new ...
ucMax's user avatar
  • 5,380
0 votes
0 answers
291 views

Smooth shape shifting animation

How to implement smooth shape shifting animation in android ? I'm rendering polygon shapes on camera preview using canvas.draw(path, paint) in OnDraw() method of my custom view. The path is being ...
chirag's user avatar
  • 57
2 votes
0 answers
645 views

How do I have a pulsing animation on a circle drawn on a canvas

Is it possible to have a pulsing animation, like the sonar pulsation, on a circle that I have drawn in a custom view canvas? For now I was able to have a second circle drawn at the same position and ...
esQmo_'s user avatar
  • 1,709
-2 votes
2 answers
72 views

Do setBackgroundColor() call onDraw()?

Working with a custom view I noticed something is weird: I noticed that setBackgroundColor() invokes onDraw() so far so good And since I wanted to create recursive calls to onDraw, I put ...
sd ss's user avatar
  • 26
2 votes
1 answer
1k views

Change a circle radius programmatically - Canvas

I want to change a circle radius from 0 to 100 programmatically each 500 milliseconds making it like a blinking animation. Basically, I have two circles drawn having a same center points with ...
Krul's user avatar
  • 139
4 votes
3 answers
2k views

Turn off RecyclerView child size change animation

I have a view and I want to change its size on click. I have following layout for test: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas....
artem's user avatar
  • 16.7k
2 votes
1 answer
1k views

Sprite Image Animation

I was trying to find easy way to animate sprite image on my android project. Found some complicated solutions and usage of them was not so easy on RecyclerViewAdapter. Why it can not be doing easy and ...
OMArikan's user avatar
  • 306

15 30 50 per page