Android Question Odd behavior with xcustomlistview and Android slider library.

Reminisce

Active Member
Hello guys, before adding the slider to my
activity, MY XCLV(xcustomlistview) displays all item completely.
Now I added the slider, and added my XCLV below it.
The issue now is my 'XCLV doesn't scroll to the last item, I have adjusted the height of my XCLV severally, it just doesnt seem to work, the remaining items doesn't show.
I have attached a screenshot describing the issue.
What could be wrong? Screenshot_20200422-163902_1587569974686.jpg
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
mmm ..... Could it be that you have to lower the height of the CLV by the image height (after a screen rotation)?

1587589251254.png
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
I don't understand what you mean. My activity is in portrait only.

It looks to me that the CLV is taking the full height and perhaps you need to subtract the height of the image height (which looks like to have the height of the missing 2 items) . I think that therefore Erel ask you to the layout.
 
Upvote 0

Reminisce

Active Member
Activity create first time:
Sub Activity_Create(FirstTime As Boolean)

    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("mainmenu")

    slider.Initialize("slider")

    Activity.AddView(slider,0,lblmenuinfo.Height +lblmenuinfo.Top,100%x,20%y)

    clvitems.AsView.Top = slider.Top + slider.Height

    clvitems.AsView.Height = 60%y

    slider.Color = Colors.white

    slider.Delay = 3000

    slider.SetTransition(slider.SLIDER_TRANSITION_Fade)

    slider.Start

    '

    'SET CART BADGE

    badge.Initialize

    badge.SetBadge(btncart,clvcartitems.Size)

    

    'init slidemenu

    slidemenu.Initialize(Activity, Me, "SlideMenu", btnmenu.Top+btnmenu.Height,100%x, 35%y,Starter.maincolour,Colors.White,False)

    slidemenu.AddItem("My Profile",LoadBitmap(File.DirAssets,"profile.png"),"profile")

    slidemenu.AddItem("Total Spent",LoadBitmap(File.DirAssets,"money.png"),"")

    slidemenu.AddItem("Orders",LoadBitmap(File.DirAssets,"orders.png"),"")

    slidemenu.AddItem("Cart",LoadBitmap(File.DirAssets,"cart2.png"),"cart")

The slider is added at runtime, so I had to reposition my CLV's top and height properties.
 
Upvote 0
Top