📅  最后修改于: 2022-03-11 14:53:32.132000             🧑  作者: Mango
android:inputType="textVisiblePassword"
OR
EdtiText editTextBox = findViewById(R.id.myEditTextView);
editTextBox.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);