Tôi có bốn TextView và tôi đang cố gắng kiểm soát thứ tự mà họ lấy nét khi người dùng điều hướng bằng TalkBack và cử chỉ chạm.Tại sao nextFocusDown không hoạt động với điều hướng TalkBack?
TextView android:text="foo" android:clickable="false" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/id_foo" android:nextFocusDown="@+id/id_baz"/>
TextView android:text="bar" android:clickable="false" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/id_bar" android:nextFocusDown="@+id/id_qux"/>
TextView android:text="baz" android:clickable="false" android:focusable="true" android:focusableInTouchMode="true" android:id="@id/id_baz" android:nextFocusDown="@id/id_bar"/>
TextView android:text="qux" android:clickable="false" android:focusable="true" android:focusableInTouchMode="true" android:id="@id/id_qux" android:nextFocusDown="@id/id_foo"/>
Khi một người dùng bật TalkBack, chạm "foo", và sau đó swipes xuống để di chuyển giữa các TextView, tôi muốn để đi foo-> baz-> bar-> qux. Tuy nhiên, thứ tự tôi cố gắng thiết lập bằng cách sử dụng nextFocusDown dường như không có hiệu lực, và thay vào đó, thứ tự lấy nét luôn luôn theo sau vị trí của TextViews trên màn hình. Tôi đã thử mọi kết hợp có thể có của clickable, focusable và focusableInTouchMode. Tôi đã thử gọi setNextFocusDownId trên các khung nhìn trong mã. Tôi đã thử cài đặt android: imeOptions = "actionNext" trên TextViews. Không có gì có vẻ hiệu quả. Tôi đang thiếu gì?
tôi đã có cùng một vấn đề. Cần giúp đỡ. – conca