Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Android中使用TextPaint为文本添加边框_Android_Text_Paint - Fatal编程技术网

如何在Android中使用TextPaint为文本添加边框

如何在Android中使用TextPaint为文本添加边框,android,text,paint,Android,Text,Paint,如何在Android中使用TextPaint为文本添加边框 这是我正在使用的代码 TextPaint textPaint = new TextPaint(); textPaint.setTextSize(30); textPaint.setTextAlign(Paint.Align.LEFT); textPaint.setColor(Color.WHITE); textPaint.setTypeface(Typeface.create("Arial", Typeface.BO

如何在Android中使用TextPaint为文本添加边框

这是我正在使用的代码

TextPaint textPaint = new TextPaint();
textPaint.setTextSize(30);
textPaint.setTextAlign(Paint.Align.LEFT);
textPaint.setColor(Color.WHITE);
textPaint.setTypeface(Typeface.create("Arial", Typeface.BOLD));
然而,我想在文本中添加边框,我们如何才能做到这一点

我不想用新油漆()