View 使用StaticLayout(多行)在自定义视图中绘制光标

View 使用StaticLayout(多行)在自定义视图中绘制光标,view,cursor,paint,staticlayout,View,Cursor,Paint,Staticlayout,如果我有: new StaticLayout(text, paint, width, alignment, 1.0f, 0.0f, false); 如何在文本中绘制光标

如果我有:

new StaticLayout(text, paint, width, alignment, 1.0f, 0.0f, false);
如何在文本中绘制光标