Android Question Second page - [B4X] [XUI] AS Settings

wimpie3

Well-Known Member
Licensed User
Longtime User
When using a second page (for instance with a selection list):
- is there a way to remove the separator (PropertySeperator=false only works on the main screen)?
- is there a way to change the font of the list items?
- is there a way to change the icon of the close button?

Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not...

1735204199988.png


Thanks!
 
- is there a way to remove the separator (PropertySeperator=false only works on the main screen)?
B4X: Copy
AS_Settings1.SelectionListItemProperties.SeperatorsVisible = False
- is there a way to change the font of the list items?
B4X: Copy
AS_Settings1.SelectionListItemProperties.xFont = xui.CreateDefaultBoldFont(20)
- is there a way to change the icon of the close button?
B4X: Copy
SettingPage2.ExitIconImageView.SetBitmap(AS_Settings1.FontToBitmap(Chr(0xE5CD),True,45,xui.Color_White))
Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not...
B4X: Copy
Private Sub AS_Settings1_CustomDrawActionProperty(ActionProperty As AS_Settings_CustomDrawActionProperty)
    ActionProperty.ActionValueLabel.Font = xui.CreateDefaultBoldFont(20)
End Sub
 

Attachments

Upvote 0
Two more things...
1. would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page.
2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking?

1735228841056.png
 
Upvote 0
would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page.
Now uses the padding property like all others. For whatever reason I had hardcoded it to 5dip.

2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking?
It use the same AS_Settings1.PropertyProperties.BackgroundColor like all other properties too.

Generally the MainPage and the other pages are the same, they all use the same class and therefore all the same properties. The only difference is the display method. The MainPage is displayed as a whole page and the other pages are displayed in a BottomSheet. So if something looks different, it is due to the property type.
 

Attachments

Upvote 0
Thanks! I'd love it though if the padding property would be a separated setting from the main page - it looks cool if the popup that appears is a bit smaller (like a window). But I know I've been asking so much already ;-)
 
Last edited:
Upvote 0
Back
Top