안드로이드 개발 질문/답변
(글 수 45,052)
portrait mode에서 password를 입력할때엔 ****로 잘보여지는데
Landscape mode로 변경하면 ****로 보이지 않고 숫자가 그대로 보여지는데요..
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword|number"
android:maxLength="8"/>
final EditText input_type = (EditText) findViewById(R.id.password);
PasswordTransformationMethod password = PasswordTransformationMethod.getInstance();
input_type.setTransformationMethod(password);
이렇게 처리된 상태입니다.
android:password="true" 이렇게 처리하지 않은 이유는 화면상에 체크박스를 체크하게되면 비밀번호를 보여주는 부분이 있어서 이렇게 처리하지 않았습니다.
혹 잘 아시는분이 계시면 답변부탁드립니다.
Landscape mode로 변경하면 ****로 보이지 않고 숫자가 그대로 보여지는데요..
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword|number"
android:maxLength="8"/>
final EditText input_type = (EditText) findViewById(R.id.password);
PasswordTransformationMethod password = PasswordTransformationMethod.getInstance();
input_type.setTransformationMethod(password);
이렇게 처리된 상태입니다.
android:password="true" 이렇게 처리하지 않은 이유는 화면상에 체크박스를 체크하게되면 비밀번호를 보여주는 부분이 있어서 이렇게 처리하지 않았습니다.
혹 잘 아시는분이 계시면 답변부탁드립니다.