StaticLayout mTextLayout = new StaticLayout(editText1.getText().toString(), paint,
canvas.getWidth() - 200, Layout.Alignment.ALIGN_OPPOSITE , 1.5f, 0.0f, false);
canvas.save();
int textX = 595;
int textY = 300;
canvas.translate(textX, textY);
mTextLayout.draw(canvas);
canvas.restore();
我需要根据从右到左制作我正在写的文字,我找到了这个网站,但我不知道把它放在哪里
TextDirectionHeuristics.RTL
Layout.JUSTIFICATION_MODE_INTER_WORD