Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
100 views

Round edges of a custom view not working as expected when using path

I want to draw a custom view , in this image I need to draw rounded corners of the rectangle I wrote this code class RoundedRectUsingPath @JvmOverloads constructor( context: Context, attrs: ...
Luther's user avatar
  • 593
0 votes
1 answer
355 views

Calculate the new control points for cubic Bezier curve in Android Canvas

In the application I am developing currently, I am having a challenge drawing a bezire curve between start and end points to join 2 lines as shown in the image below. The distance between the lines ...
Rakesh Menon's user avatar
-1 votes
2 answers
408 views

unity Bézier Path creator android moving problem is start laggy when scene changed

Im using bêziers path not vertex one. And in editor(windows) there is no problem with it. im building for android and trying to play with galaxy m21. first scene is completely normal. but when it ...
Seyit MAKSUTOĞLU's user avatar
8 votes
1 answer
5k views

Native Android -> How to create custom curved bottom navigation

So this is the navigation my designer made for our project. Height of the bottom navigation is 70dp. What I have tried so far. First I downloaded a vector drawable background from design and set it as ...
kostik's user avatar
  • 677
1 vote
2 answers
4k views

How to animate BottomSheetDialogFragment in Android?

I have a BottomSheetDialogFragment that I would like to animate by applying Bézier curve on its entry and exit. I have managed to apply simple animation this way override fun onActivityCreated(arg0: ...
Var Droid's user avatar
  • 254
1 vote
0 answers
795 views

How to get a curve on top edge of the selected bottom navigation?

I just started working on a project and thought of putting a curvy bottomnavigationview more like a wave where the user clicks the bump generates. Like this I pretty much found a library where the ...
Ayush Shrivastava's user avatar
3 votes
0 answers
1k views

Android: Draw bezier curved shape

I'm trying to draw shape with a top shadow like in the picture (curve at start, bezier curve at center and curve at the end): Currently i have done only bezier curve at the center and shadow for it ...
Alex's user avatar
  • 863
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
0 votes
1 answer
146 views

Try to poll Y coordinates of a Bezier curve but got a straight line instead?

I want to get a list of Y coordinate values from a Bezier curve path that I generated. But all I got was a straight line, what went wrong? Here's the code snippet: private static ArrayList<...
AsianRyanReynolds's user avatar
1 vote
1 answer
598 views

How to draw a continuous curve goes through my touch points?

I have problem to implement code for drawing bezier Curve which is working perfect in iOS. I want to this effect. but with Touch Points. But I am getting something wrong. Problem at this line ...
Abhay Koradiya's user avatar
1 vote
0 answers
327 views

How to Convert android.graphics.Path.arcTo ( oval, startAngle,sweepAngle) to android.graphics.Path.cubicTo()

I have searched a lot about this.Like how-to-create-circle-with-bézier-curves, how-to-best-approximate-a-geometrical-arc-with-a-bezier-curve etc. But all seems to me as arbitrary approximation of Arc ...
CodeWithVikas's user avatar
0 votes
0 answers
685 views

Android Curve Motion

I can't correct implement moving on curve. In material design guide says, that all motion must be a downwards, but using 'ArcMotion' I get downward direction if element start position is in down left ...
powerman23rus's user avatar
4 votes
1 answer
3k views

Draw a curve (bezier curve) between two lat long points on google maps android

I want to draw a curve (Beizer curve) between two lat-long points. Currently i am referring this post (code is in javascript). Code to get curve points using cubic bezier equation private void ...
Sarweshkumar C R's user avatar
1 vote
2 answers
1k views

How to draw a rounded corner rectangle progressively with canvas

I have a button which I want to draw a rounded corner rectangle around it progressively after I clicked it. I try to draw bezier curves in a canvas however I could not find the formula of a bezier ...
user1870797's user avatar
4 votes
1 answer
3k views

Points based curve transformation. Bezier curve transform in Android

I have a list of points that represents a curve which I draw on a canvas using a Path object. path.moveTo(x, y); for (int i = 0; i < points.size(); i++) { path.lineTo(points.get(i).x, points....
Vilen's user avatar
  • 5,061

15 30 50 per page