B4J Question Custom Color Listview

ivanomonti

Expert
Licensed User
Longtime User
ho bisogno di colorare una listview con colori di default della mia applicazione testo in formato rgb(255,205,34) e sfondo listview con rgb(39,39,39) ma non riesco a imporre queste regole dal design interno di b4j,,, qualcuno di voi mi rinfresca come posso ovviare il problema

I need to color a listview with default colors of my text application in rgb format (255,205,34) and listview background with rgb (39,39,39) but I can not impose these rules from the internal design of b4j ,,, someone of you refresh me as I can solve the problem

2018-04-02_173534.png
 

ivanomonti

Expert
Licensed User
Longtime User
Resolved, thanks Erel


B4X:
Sub css_button(obj As Button)
    CSSUtils.SetStyleProperty (obj,"-fx-base"," #222222")
    CSSUtils.SetStyleProperty (obj,"-fx-control-inner-background","#222222")
    CSSUtils.SetStyleProperty (obj,"-fx-background-color","#222222")
    CSSUtils.SetStyleProperty (obj,"-fx-table-cell-border-color"," transparent")
    CSSUtils.SetStyleProperty (obj,"-fx-table-header-border-color"," transparent")
    CSSUtils.SetStyleProperty (obj,"-fx-padding","5")
    CSSUtils.SetStyleProperty (obj,"-fx-font-size","10pt")
    CSSUtils.SetStyleProperty (obj,"-fx-text-fill","#7D7D7D")
    CSSUtils.SetStyleProperty (obj,"-fx-border-width","0")
    CSSUtils.SetStyleProperty (obj,"-fx-background-radius","0")
    CSSUtils.SetStyleProperty (obj,"-fx-background-insets","0 0 0 0, 0, 1, 2")
End Sub
 
Upvote 0
Top