<Button android:id="@+id/signupButton"
android:layout_gravity="left"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_marginLeft = "10px"
android:layout_marginTop = "10px"
android:text="Sign-Up"/>
<TextView
android:id="@+id/accountlabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text = "Forgot password"
android:textColor = "#000000"
android:layout_marginLeft = "10px"
android:layout_marginTop = "10px"
android:textSize="15sp"
android:paddingLeft="3px"
android:paddingRight="3px"
/>
<Button
android:id="@+id/cancelButton"
android:layout_gravity="right"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_marginLeft = "10px"
android:layout_marginTop = "10px"
android:text="SignOut"/>
</LinearLayout>
내 문제는 그 초점은 이동하지 않습니다 another.it 하나 개의 버튼에 간다 안녕 난은 XML 레이아웃 다음 한
내 텍스트를 클릭 할 수 있기 때문에 textview 또한 그것에 집중해야합니다.
나는 textview에서 android : focusable = "true"를 추가하는 것과 같은 몇 가지 해결책을 읽었지만 작동하지 않았습니다.
누군가이 문제에 대한 해결책이 있습니다.
감사
android : clickable = "true"를 추가하고 setOnClickListener에서 이벤트를받습니다. 사실 내 생각을하면 내 초점을 textview로 이동하지만 UI에는 표시되지 않습니다. 포커스가있을 때 버튼이 주황색으로 변함에 따라 텍스트 뷰는 어떤 색상도 변경하지 않으므로 텍스트 뷰에는 포커스가 없다고 생각합니다. – Rishi
texview가 포커스를 얻었을 때 그 배경색을 변경하여 UI에 반영되도록하여 텍스트 뷰에 초점을 맞출 수 있도록하는 방법이 있습니까? – Rishi
@Rishi 그냥 considor 지금 textview 클래스 버튼으로 textview 버튼처럼 적용 할 수 있습니다 – Siten