Android, RelativeLayout restarts Marquee-TextView when changing ImageView in same RelativeLayout

后端 未结 4 1356
星月不相逢
星月不相逢 2021-01-18 20:29

I have not found a solution for my problem, maybe you can help me here.

I am using a RelativeLayout with an ImageView and a TextView as children. The TextView contai

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 20:52

    See my answer here : https://stackoverflow.com/a/13841982/1823503

    The idea is :

    • to fix the width and height programmatically (you did it)
    • to setSelected (you did it)
    • to Override your TextView to fix the focus problems

提交回复
热议问题