B4J Question [XUI xCustomListView] Transparent Background and Scrollbar visibility

rraswisak

Active Member
Licensed User
Longtime User
Hi All,

I use xCustomListView for my B4A and B4J app, please take a look this:

upload_2019-1-22_11-44-36.png


A: Form background came with color or images
B: Background of CustomListView
C: Scrollbar

1. When i set color drawable on CLV with transparent, it does not affect. It's should be red color as point A
2. When size of list item less than CLV height, the scrollbar area was visible (but not the scrollbar it self), don't you think the item width will following CLV width whenever scrollbar was visible or not

Thank you
 
Solution
Moved to the questions forum. It is always better to start with a question.

If you want the list to be transparent in B4J then you must add a CSS file with:

B4X:
.scroll-pane{
   -fx-background-color:transparent;
}
.scroll-pane .viewport {
       -fx-background-color: transparent;
}

Loading CSS files: https://www.b4x.com/android/forum/threads/35854/#content

If it doesn't solve the problem then please upload the project.

Erel

B4X founder
Staff member
Licensed User
Longtime User
Moved to the questions forum. It is always better to start with a question.

If you want the list to be transparent in B4J then you must add a CSS file with:

B4X:
.scroll-pane{
   -fx-background-color:transparent;
}
.scroll-pane .viewport {
       -fx-background-color: transparent;
}

Loading CSS files: https://www.b4x.com/android/forum/threads/35854/#content

If it doesn't solve the problem then please upload the project.
 
Upvote 0
Solution

rraswisak

Active Member
Licensed User
Longtime User
Moved to the questions forum
Hi Erel, thank you for your reply and directing to correct sub forum,

B4X:
.scroll-pane{
   -fx-background-color:transparent;
}
.scroll-pane .viewport {
       -fx-background-color: transparent;
}


using above css code plus setting clv drawable to transparent make the clv has transparent background, even it will have an impact on the divider color property, but it's okay for now because i do not use divider color in this case

thank you for your support
 
Upvote 0
Top