안드로이드 만들 때 텍스트 입력 폼을 <Edit Text/>를 이용해서 만든다.
그런데 가끔 readonly, 즉 수정 불가의 입력칸을 만들고 그 곳에 어플에서 만들어진 값을 노출하고 싶을 때가 있다.
res > layout > 해당.xml 파일을 열어서 Edit Text에 android:focusableInTouchMode="false" 를 추가해 준다.
아래는 예제이다.
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/deviceip"
android:textSize="16dp"
android:textStyle="bold"
android:focusableInTouchMode="false"/>