简体   繁体   中英

how to make a part of textview editable

First I'm using Anko library, Kotlin, Java in my project. I have an android app that test skills in French so I want to make a part of Textview editable its something like this (Solo Learn): https://i.stack.imgur.com/bfric.png I try :

je mang$ une pomme

then split String with $ and add editText in place of $ but it's not a good idea using web view also it's not a good idea even its work thanks in advance.

You can add addTextChangedListener to EditText view and add prefix or suffix , you need to be non-editable.

Check this previous question also ->

Put constant text inside EditText which should be non-editable - Android

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM