Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to apply smooth scroll to linearlayout

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to apply smooth scroll to the linearlayout,i have applied a ScrollBy function to linearlayout but the transition is not smooth.
Need some idea as to how can it b achieved without adding scrollview.

Thanks.
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have tried animation also but it gives problems.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suzzane Pinto wrote:Need some idea as to how can it b achieved without adding scrollview.

Any reason why you can't put it in a ScrollView?
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi steve,
Thanks for replying to the post...actually i was not trying to use scrollview because i was able to use scrollby in linearlayout,by which i scrolled to d desired postion and now i want it to b smooth like ios.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can't do scrollBy smooth enough then you should do the ScrollView - that is what it exist for. Stop using ScrollBy, and add your layout to the ScrollView.
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks....can i use some translate animation to the layout??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic