Using a rounded corners drawable

前端 未结 3 1561
遇见更好的自我
遇见更好的自我 2020-12-23 10:59

There is a nice post made by the popular Google developer Romain Guy that shows how to use a rounded corners drawable (called "StreamDrawable" in his code ) on a v

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 11:14

    I think that the solution that is presented on this website works well.

    unlike other solutions, it doesn't cause memory leaks, even though it is based on Romain Guy's solution.

    EDIT: now on the support library, you can also use RoundedBitmapDrawable (using RoundedBitmapDrawableFactory ) .

提交回复
热议问题