I want to draw an arc around my textview , but I'm struggling to do it.
I'm trying to draw an Arc with canvas, transforming it on a drawable and then apply to the background of the textview. The thing is the arc isn't showing...
Here is the code to create the drawable :
Bitmap b = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
RectF rectF = new RectF(100,100,100,200);
c.drawArc(rectF, 0 , 180, true, new Paint(Color.BLACK));
Drawable d = new BitmapDrawable(b);
I have this(1st screenshot) and I want to do this(2nd),