Android Question Horizontal scroll view

hitesh.k

Member
Hello there
In designer(b4x pages) i have added a horizontalscroll view and added items expand its width and added
More items but in device b4a bridge debug mode.
There is no scroll bar.


My second try was made a second layout added panel and load 1st one in pannel it has scroll bar but only upto 4 items out of 7
Any help i can get.
 

watesoft

Active Member
Licensed User
Longtime User
Hello there
In designer(b4x pages) i have added a horizontalscroll view and added items expand its width and added
More items but in device b4a bridge debug mode.
There is no scroll bar.


My second try was made a second layout added panel and load 1st one in pannel it has scroll bar but only upto 4 items out of 7
Any help i can get.
You can place them on an layout as below image.
B4X:
    Private Pan_Menu As Panel
    Private SV_Menu As HorizontalScrollView
   
    SV_Menu.Panel.AddView(Pan_Menu,0,0,Pan_Menu.Width,Pan_Menu.Height)
    SV_Menu.Panel.Height=Pan_Menu.Height
    SV_Menu.Panel.Width=Pan_Menu.Width
 

Attachments

  • 111.jpg
    111.jpg
    8.4 KB · Views: 155
Upvote 0

hitesh.k

Member
In most cases it is simpler to use xCustomListView. There is an orientation property that you should set in the designer.
same thing happening with xcustomlistview changed orientation to horizontal added items 7 buttons in my case
run prog but no scroll bar.
 
Upvote 0

hitesh.k

Member
You can place them on an layout as below image.
B4X:
    Private Pan_Menu As Panel
    Private SV_Menu As HorizontalScrollView
  
    SV_Menu.Panel.AddView(Pan_Menu,0,0,Pan_Menu.Width,Pan_Menu.Height)
    SV_Menu.Panel.Height=Pan_Menu.Height
    SV_Menu.Panel.Width=Pan_Menu.Width
hello added buttons on panel added button parent to panel loading SV_Menu.Panel.AddView(Pan_Menu,0,0,Pan_Menu.Width,Pan_Menu.Height) getting java err
 
Upvote 0
Top