[英]Android: Textview scrolling issue on orientation change
In my app i want to show facebook updates. 在我的应用中,我想显示Facebook更新。 I used a textview to do the same with marquee limit 2. The problem is when the orientation changes the text starts scroll from the beginning.
我使用textview对选取框限制2进行了同样的操作。问题是当方向改变时,文本将从头开始滚动。 How can i fix this issue?
我该如何解决这个问题?
Thanks in advance. 提前致谢。
Just add the following code in ur android manifest(in the activity) so that the orientation changes wont affect ur activity. 只需在您的android清单中添加以下代码(在活动中),以便方向更改不会影响您的活动。
android:configChanges="orientation|keyboardHidden" android:screenOrientation="unspecified"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.