Skip to main content

2in1 with TextArea?

4 replies [Last post]
discreet
Offline
Joined: 2010-07-25

Hi all
I have two problems in one class.Who can tell us how to make a smooth scrolling of focus and how to achieve a result as list.setFixedSelection(List.FIXED_CENTER); in this class?!

Here is the link because this(comment) field wasn't enough.

http://www.2shared.com/file/7q9ecJIW/lwuitSample.html

Message was edited by: discreet

Message was edited by: discreet

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

Smooth scrolling is seamless and should "just work" see the LWUITDemo for reference. Your question is completely unclear to me.

discreet
Offline
Joined: 2010-07-25

I hope that you have downloaded the .java file.When you test it did you see that i've used TextArea fields to make a "fake" list.When i go thorugh one TextArea to another the focus is going through each-other without easing motion.So is there any method to achieve that.You can see it on the list when you move through elements of list it goes with easing.
And second question was how to achieve to those TextAreas effect of stopping focus in the center of the screen and elements with go through this focus but focus will stay static on the center. (List.FIXED_CENTER);

vprise
Offline
Joined: 2003-11-07

Keeping a text area centered won't work since it works only for cyclic scrolling.
You can look at the LWUIT source to figure out how we did things and try to achieve something similar e.g.:
http://lwuit.blogspot.com/2008/09/animated-focus-transition-for-regular....

discreet
Offline
Joined: 2010-07-25

Thanks man this is what i was looking for.