Android: Launch activity from clickable text

前端 未结 3 502
臣服心动
臣服心动 2020-11-28 06:23

Is there any way I can launch an activity from a portion of a string.

eg I have this in my strings.xml file:



        
3条回答
  •  温柔的废话
    2020-11-28 06:39

    assign this string to one of your xml layout and then in your code get the id of TextView and then implement OnClickListener for this Textview,inside of it you can start your new activity you want.

提交回复
热议问题