Drawing background shape with one corner and two cutting edges - Android
问题 I want to draw a shape to set it as background. the shape has one corner and two cutting edges. Here is the rough diagram of the shape I want with one round corner and two corners joined with straight line. I am using and to draw it. Could you help on this ? 回答1: A 9-patch bitmap (as per UDI's answer) is probably the easiest, but if you want to do it in code, create a custom Shape: import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android