0
  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 

在此处输入图像描述 有谁知道把它放在哪里?, 我将感激不尽

4

0 回答 0