/**
* 根据输入内容显示模式,绘制内容是圆心还是明文的text
*/
private void drawContent(Canvas canvas) {
int cy = getHeight() / 2;
TransformationMethod mTransformationMethod = getTransformationMethod();
String password = getText().toString().trim();
if(mTransformationMethod != null) {
password = mTransformationMethod.getTransformation(password,this).toString();
}
//....
}
需要修改代码: