ListView 項目包含 EditText,點擊可彈出鍵盤獲得焦點,但**無閃爍光標**,無法輸入。
ListView 項目佈局寬度未撐滿,導致 EditText 寬度為 0 或極小,光標超出可見區域。
android:layout_height="wrap_content"
android:cursorVisible="true"
android:focusable="true"
android:focusableInTouchMode="true" />
android:descendantFocusability="beforeDescendants" 並配合 android:focusableInTouchMode="true" 於父佈局,避免焦點搶奪。BaseAdapter,確保 getView() 中正確綁定焦點監聽,避免複用導致焦點錯亂。將 EditText 的 layout_width 從 wrap_content 改為 match_parent(或 fill_parent),光標即可正常顯示。