0
畫布是由設置圖像和文本,但如何把文字上的圖像的底部中心如何使用paintText設置android中圖像的位置?
newCanvas.drawBitmap(bml,0,0,null);
String captionString =editTextCaption.getText().toString();
if(captionString !=null) {
Paint paintText = new Paint(Paint.ANTI_ALIAS_FLAG);
paintText.setTextAlign(Paint.Align.CENTER);
paintText.setColor(Color.BLACK);
paintText.setTextSize(100);
paintText.setStyle(Paint.Style.FILL);
paintText.setShadowLayer(10f,10f,10f, Color.BLACK);
這是更好嗎? –