How to make an EditText selectable but not editable on Android Ice Cream Sandwich?

后端 未结 4 1645
甜味超标
甜味超标 2021-02-07 03:15

I have a ListView in Activity, and in each item , I insert an EditText for show my text. I need drag the handle to select text & copy the text, but can not edit text. On And

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 04:00

    Althouth android:editable is deprecated and Lint suggests to use inputType, It doesn't seem to work. So android:editable="false"is apparently the best possible solution for all android versions.

    
    

提交回复
热议问题