Border over a bitmap with rounded corners in Android

前端 未结 6 1182
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 11:08

I used the below to make a bitmap with rounded corners. Now I want to draw a line around the bitmap.

private BitmapDrawable roundCornered(BitmapDrawable scal         


        
6条回答
  •  旧巷少年郎
    2020-12-01 11:38

    How about to prepare 9-patch image like below and set it as a background by using android:background

    enter image description here

提交回复
热议问题