Top "Android-canvas" questions

The Android Java Canvas (android.

Drawing Circle programmatically using Android ShapeDrawable

I have a requirement in my project to draw a circle in runtime dynamically. So for that purpose I am …

android android-canvas android-drawable xml-drawable shapedrawable
How to draw a circle with radial gradient in a canvas?

I created a circle button that can change his color when I call a function. What I want is to …

android android-canvas android-view
How to Measure TextView Height Based on Device Width and Font Size?

I am looking for method in Android that will take a input (text, text_font_size, device_width) and based …

android android-layout android-canvas android-view textview
Canvas.clipPath(Path) not clipping as expected

I'm trying to clip a canvas drawing operation to an arc-shaped wedge. However, I'm not getting the intended result after …

android drawing android-canvas image-clipping
Android: How to check if a path contains touched point?

I would try to develop an application in which I can draw a planimetry. So, each room has got its …

android path drawable contains android-canvas
Rect and RectF in Android SDK

What is the difference between Rect and RectF in the Android SDK?

android android-canvas rect
Android Canvas Clear with transparency

I am trying to "erase" from a canvas. Just as a VERY simple test of clearing a canvas, I have …

android android-canvas android-custom-view
How to draw Bezier Curve in Android

I have a requirement to create bezier curve in my project. For that purpose I am drawing a view with …

android android-canvas bezier best-fit-curve
center text vertically and horizontally with canvas

I'm trying to align a text in bitmap horizontally and vertically, I read several post but I can't find a …

android android-canvas drawtext
Android: How to fill color to the specific part of the Image only?

I have Image Like this: Now, i want to fill the color to the Specific part of that image. as …

android android-canvas paint draw