3,796 questions
0
votes
1
answer
104
views
How can we draw something between the background and the contents of an arbitrary View instance that we don't own?
I'm working on a library that modifies the appearance of Views at runtime,
"live". I need to insert some draw operations z-wise-between a View's
background and its contents – i.e., right ...
0
votes
0
answers
62
views
Draw Complex Graph JetPack Compose
I'd like to draw a path that consists of multiple colors on a Jetpack Compose canvas. The color of the path changes when it gets above or below a certain Y value. And also auto-selected 2 points of ...
0
votes
0
answers
65
views
Draw a composable into canvas before it is ever drawn to screen
I'm creating an AnimatedVisibility-like API that operates on a Bitmap of the content for enter-exit transitions. I'm using the recommended way to draw a composable's content into a bitmap.
Basically ...
0
votes
1
answer
64
views
Android RTL print canvas layout
Is there a way to make Android print Canvas RTL? Make the canvas.drawText() behave for RTL (right to left text, like Arabic and Hebrew)? (And RTL alignment should be set to always left (so that ...
0
votes
1
answer
180
views
Android Compose black color instead of erased transparent on bitmap
Im trying to achieve erasing pixel as transparent color on bitmap, Jetpack Compose. But when I load bitmap to show on canvas the erased pixels shown as black. Here my composable:
@RequiresApi(Build....
2
votes
1
answer
173
views
Is there a way to Serialize/Deserialize jetpack compose canvas path?
I have created a a canvas application. A user can draw on canvas. Now I want to save the progress of it's drawing in the Room Database. But I'm getting error for Serialization/Deserialization of ...
0
votes
1
answer
59
views
How to Capture a Specific View as a Bitmap in Android?
I'm building an Android app in Kotlin, and I want to capture a particular View (like a TextView or ImageView) as a Bitmap. I’ve read that DrawingCache can help with this, but I’m unsure if it’s the ...
2
votes
1
answer
547
views
Jetpack Compose. How to draw pie chart with labels?
I'm trying to draw pie chart with sections and show labels for each section. The label should be shown at the beginning of each section with a padding of 10dp from the pie chart.
Here is my code:
@...
0
votes
1
answer
36
views
Drawing a Line on SurfaceView
When I press the button and try to draw a yellow line on SurfaceView, some random mess appears on the screen.
How can I access the phone screen the fastest possible way properly to draw lines, ...
1
vote
0
answers
116
views
Android Canvas.drawPoint method draws nothing
I'm doing some work with Canvas.drawPoint(float, float, Paint), but I found a strange thing: this method doesn't work.
At first, I thought it was a problem with my code, so I wrote a simple test code:
...
0
votes
0
answers
303
views
Pass InputParams from CustomPage to PCF Control
I created a custom page and also a modern command.
This command gets the ID of the current entity or (if you are on a subgrid) the entity ID of the selected entity.
Now I'm passing the ID from my ...
2
votes
1
answer
263
views
drawArc() `s working in DrawScope in jetpack compose?
Actually i am reading this article . I am so confuse about the working of startAngle , and direction of arc in drawArc() , can anyone explain this ?
I have read many answers in jetpack compose . i ...
-1
votes
1
answer
83
views
Is there a way to store a vector graphic in the app's package and load it on runtime into a canvas?
I want to build an app where you can draw ancient hieroglyphs on a canvas in a custom view.
I have to provide over 1000 hieroglyphs in vector graphic format (for scaling mirroring etc.). The provided ...
2
votes
0
answers
96
views
Wrong Index Selection after Zoom and Swipe in Jetpack Compose Custom CandleStick Chart
I'm building a custom candlestick chart using Jetpack Compose in my Android app. The chart displays financial data, and users can zoom in/out and swipe to navigate through the candles. However, I'm ...
-1
votes
1
answer
160
views
Build the ios Messages Chat Bubble(with bottom right and left tail ) in Android
I want to build the iOS-like Messages chat bubble in Android using the custom view class this is the code that I use to create the rounded corner rectangle and it will be based on the height and ...