0

In my app i want to show facebook updates. 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. How can i fix this issue?

Thanks in advance.

upv
  • 539
  • 5
  • 7
  • 15

1 Answers1

0


Just add the following code in ur android manifest(in the activity) so that the orientation changes wont affect ur activity. android:configChanges="orientation|keyboardHidden" android:screenOrientation="unspecified"

Hussain
  • 5,552
  • 4
  • 40
  • 50
  • @Unnikrishnan: Just check whether ur activity is creating again when the `orientation` is changed. If it is recreating tat can be avoided by this code. Check tat thing. – Hussain Jun 20 '11 at 11:47
  • @Unnikrishnan: In that case change the `textView` to `EditText` cos i came across this link http://stackoverflow.com/questions/6255777/scrolling-textview-repaint-problem. in which the comment stated this. – Hussain Jun 20 '11 at 12:03