I am using extension::ScrollView in my project. When scrollview’s bounceable prop is false, there is no problem. But When I set bounceable to true. I found black area around the container layer and no way to change it’s color. Could anyone help me? Thank u in advance.
I extend ScrollView
and use something like:
void MyScrollView::postInit(Color3B &colour) {
setBounceEnabled(true);
setBackGroundColorType(ScrollView::BackGroundColorType::SOLID);
setBackGroundColor(colour);
}
Works with black and white backgrounds, although if the list isn’t full I typically cast an opaque full screen sprite over whatever persisted.
1 Like
Yes, JonB. ui::ScrollView do support setBackgroundColor. I have switched to use ui::ScrollView from old extension::ScrollView. Great THX