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

后端 未结 4 1224
星月不相逢
星月不相逢 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

    I had a same problem and I fixed it just now:)

    If your TextView which in layout XML contains layout_weight

    android:layout_weight="1"
    

    Remove it!This attibute cause marquee restart.

    Hope helpful:)

提交回复
热议问题