Draw text inside android circle

后端 未结 3 574
感动是毒
感动是毒 2021-02-06 15:31
public static Bitmap drawCircle(int width,int height, int borderWidth) {
    Bitmap canvasBitmap = Bitmap.createBitmap( 350, 350, Bitmap.Config.ARGB_8888);
    BitmapSha         


        
3条回答
  •  隐瞒了意图╮
    2021-02-06 16:13

    Idea: Use a simple TextView component.

    Then create this custom shape:

    
    
        
        
        
    
    

    And finally set this shape to be the background of your textview.

    For more suggestions check this link: Android draw circle around Text

提交回复
热议问题