I need to know how the width of text changes when I increase paint.getTextSize() n times. I thought that is proportional, but first test indicates tha ...
I need to know how the width of text changes when I increase paint.getTextSize() n times. I thought that is proportional, but first test indicates tha ...
I need to draw in canvas four boundary corner for qr code scanner. Here is example (I need to draw this four blue boundary corner). I know how to d ...
When I try to use the getTextBounds() method of Paint class in Android, I am getting errors on older version emulators (Marshmallow and Nougat 7.1.1). ...
I wanna develop a pictionary style app. I've figured out the drawing part (using canvas, paint and related libraries) on the device, and now I need to ...
I'm currently doing a custom pin code and doing it with a canvas and paint, Unfortunately I cant seems to copy what the iputType="numberPassword" is d ...
I have an image template that contains on the top of a transparent background a white only icon. How can I draw this icon with differents color (ex: b ...
I have created a custom view project based on the lessons I have learned in this and this codelab. In my project, I tried to draw not just on a view b ...
I am creating an app that pulls images from urls and puts them into a recyclerview. The user can then access those images and view it fullscreen. This ...
I am trying to achieve this look in my android app. It is called deboss effect where the text looks hollow. I have to do this using Canvas so TextV ...
I want to calculate how many lines some text needs to fit into a fixed-width TextView. And I used Paint.breakText for this: However, the calculated ...
I am creating a simple Android app within which there are particles which move across the screen. These particles are currently drawn with a paint w ...
I am trying to create the white impact font with black outline (aka "The Meme Font"). I applied the logic for both texts that are drawn on Canvas but ...
I am trying to create a custom impact font with white color and black outline (aka the "meme font"). I have 2 texts on both ends of the canvas but onl ...
I am drawing text on my Canvas using TextPaint and StaticLayout. However, I want my text to be drawn in capital letters. The suggestion online is to u ...
I have an ImageView with 2 TextViews. I am trying to align the captions by its median with the median (width/2) of the Canvas. Here is an illustration ...
I have 2 TextViews on top of an ImageView. I am using the Canvas and Paint classes to draw the captions on the picture. I want the captions to have ab ...
I'm trying to get the text input from the user and draw it on the image using Canvas but the image is saved without what was supposed to be drawn. Rig ...
I try to create a stroke for my view and it work well if the left and top is 0. After I change the left rect, the left edge stroke is bigger than norm ...
I am trying to implement the below progress bar: and the result I am getting is: The problem here is that the lines do not fit in the progress bar ...
I am creating a custom view by extending android.view.View. Now, I need to draw a rounded rectangle on API level below 21. Android has a built in met ...