Recent

Author Topic: [LAMW] items position/order on jScrollView  (Read 6075 times)

r.lukasiak

  • Full Member
  • ***
  • Posts: 138
[LAMW] items position/order on jScrollView
« on: December 03, 2021, 11:49:41 am »
Hi everyone!

I'm trying to add images to jScrollView but all of them appear at the same position, how can I set desired position or make them appear one under another? I was checking the demos but there is nothing for jScrollView.

thanks in advance!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: [LAMW] items position/order on jScrollView
« Reply #1 on: December 03, 2021, 07:03:16 pm »
Quote
I was checking the demos but there is nothing for jScrollView.

What about demo "AppScrollingImages"?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

r.lukasiak

  • Full Member
  • ***
  • Posts: 138
Re: [LAMW] items position/order on jScrollView
« Reply #2 on: December 03, 2021, 09:46:35 pm »
I saw it but it's for jHoizontallScrollView, right? and I need it to be vertical. However, I took a look into this again and I noticed something I missed, I didn't set the inner layout, now I set ilLinear and it behaves as needed, thanks!.
Is there any way to align the objects to the left or right, I need some of them to be aligned to the left and some to the right. And if it were possible the first object to appear at the bottom of jScrollView, it'd be just perfect.
Sorry for so many questions :D I'm just discovering this "Android stuff" and it's pretty amazing, I'm just a bit lost since some components work a bit differently to what I'm used to.

Thanks in advance for all your help!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: [LAMW] items position/order on jScrollView
« Reply #3 on: December 04, 2021, 02:27:41 am »
Quote
I saw it but it's for jHoizontallScrollView, right?

No. It will work in jScrollView,  too!


Quote
Is there any way to align the objects to the left or right, I need some of them to be aligned to the left and some to the right.

No. You need draw you "perfect" image "like a chat" in jDrawingView  before add it to jScrollView.


Quote
And if it were possible the first object to appear at the bottom of jScrollView

Yes! There are some other AddImage methods "overload"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018