我正在尝试在运行时更改滚动窗格的缩略图的颜色。为了在运行时更改滚动窗格的背景颜色,我使用以下代码:
sp.setStyle("-fx-background-color: "+colorToHex());//sp is the scroll pane
//colorToHex return the color in hexadecimal.
我无法在运行时更改拇指颜色。
为了更改css中的拇指颜色,我使用以下代码:
.scrollpane :vertical .thumb{
-fx-background-color:black;
-fx-background-ra
在我的Xamarin Forms Android应用程序中,我想根据用户在运行时选择的主题来更改splash屏幕的颜色。此更改将影响应用程序的下一次运行。
我尝试使用内置的splash_screen.xml并使用Splash.axml文件,但我不知道如何(如果可能)将启动屏幕的背景色设置为在主题中定义的颜色。
这个是可能的吗?