简体   繁体   中英

Highlighting part of text

how to 'pull out' these answers so I can use them in OnClick method to highlight each of them when pressed in Android Studio? Thanks for help.

<resources>
   <string name="My_dog">My dog's name is Happy. He likes to jump and sleep. Sometimes he sleeps more than he jumps :) 
        What does Happy like to do?
           1) run,
           2) swim,
           3) jump and sleep.
   </string>
</resources>

Don't use 1 string. Use 1 for the question and one for each answer. Then you don't need to pull out anything.

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