I am using an EditText
. Is it possible to have a part of text uneditable and the rest editable in the same EditText
?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
You could use
or
although disabling the
EditText
does currently not ignore input from the on-screen keyboard (I think that's a bug).Depending on the application it might be better to use an
InputFilter
that rejects all changes:Also see this question.
You can implement a TextChangedListener where you make sure those parts of your text wont get
deleted/overwritten
.