android - Hi,How I design the UI , I know use html code can make color different,but I need click part just only orange
问题描述
Just only orange part can click,so my code can't just use a Textview
How I design the UI, I know use Html code can make color different,but I need click part just only orange
Thanks In Advance
解决方案
For that, you have to use a class named SpannableString. look here how to use it in kotlin - https://medium.com/@programmerr47/working-with-spans-in-android-ca4ab1327bc4
推荐阅读
- python - 使用父类实例创建子类对象
- sql - 用同一行但不同列的值填充列的空值
- python - 改变对象的类方法
- c++ - “使用”关键字 - 将迭代器传递给函数
- java - 无法使用 gradlew 命令行传递参数/系统属性
- javascript - 反应测试,userEvent 无法正常工作
- javascript - 如何在 .json 对象中设置 sysdate 变量?
- amazon-web-services - 将特定 AWS ECS 任务映射到 FARGATE 或 FARGATE_SPOT 容量提供程序
- flutter - 我如何得到飞镖方程的答案?X*A+B=0
- android - 如何启用/禁用 android 软键盘中的单个键?或启用/禁用键状态