<TextView? ? ??? ? ? ? android:layout_width="wrap_content"? ? ? ? android:layout_height="wrap_content"? ? ? ? android:text="@string/paomadeng"? ? ? ? android:singleLine="true"? ? ? ? android:ellipsize="marquee"? ? ? ? android:focusable="true"? ? ? ? android:focusableInTouchMode="true"? ? ? ? ?/>
1 回答
已采納

習慣受傷
TA貢獻885條經(jīng)驗 獲得超1144個贊
解決方法有兩種,1,重寫textview,讓focusable返回true(我記憶是這樣的,具體哪個方法上電腦我看),優(yōu)點:簡單,快速。缺點:如果其他控件獲取了焦點,滾動會變得一卡一卡的。2,自定義組件,優(yōu)點:效果完美,缺點:需要自己寫代碼開發(fā)。
- 1 回答
- 0 關(guān)注
- 1155 瀏覽
添加回答
舉報
0/150
提交
取消