摘要:
public class MyView extends View {private int textX = 20,textY = 20;public MyView(Context context) {super(context);setFocusable(true);}@Overrideprotected void onDraw(Canvas canvas) {//创建一个画笔实例Paint paint = new Paint();paint.setColor(Color.RED);//绘制文本canvas.drawText("Game", textX, textY, pa 阅读全文