将 android:password="true" 修改为: android:inputtype="textpassword" 转载于:https://www.cnblogs.com/mengliandroid/p/4429007.html