TextView
에 대한 정말 바보 같은 문제를 알아낼 수 없습니다! Button
및 TextView
의 간단한 레이아웃이 있습니다. 이 레이아웃입니다 :Android : TextView에 포커스가 적용되지 않음
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="Button1" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/button1"
android:focusable="true"
android:clickable="true"
android:text="TextView1"
android:textAppearance="?android:attr/textAppearanceMedium"/>
때 버튼에 포커스가 나는 이유는 텍스트 뷰가 포커스를 취득하지 않습니다 에뮬레이터에서 "아래쪽 화살표"(이 !! 파란색으로하지 않습니다)를 누르면? 도와주세요 !!
왜 TextView가 포커스를 얻길 원합니까? –
'TextView'를 포커스 가능하게 만들고 싶습니까? – sankettt
beacause 앱이 터치가 아닌 기기 용으로 개발되었으며 TextView를 클릭 할 수 있어야합니다 (하지만 버튼을 사용하고 싶지 않습니다!) !! – user1709805