我使用kony中的加载屏幕,通过以下api-
kony.application.showLoadingScreen("BusyIndicator","Loading data...",constants.LOADING_SCREEN_POSITION_FULL_SCREEN, true,true,null);
BusyIndicator是我制作的自定义皮肤,包括背景色黑色和35%的透明度。
然而,我收到了文本"正在加载数据…"黑色。
请帮助我通过更改文本颜色和大小来自定义此文本。
您需要应用项目中可用的现有皮肤(例如"slTextWhite"),并在以下代码中使用相同的皮肤:
kony.application.showLoadingScreen("slTextWhite","Please wait",constants.LOADING_SCREEN_POSITION_ONLY_CENTER,true,true,{});
希望这能有所帮助!
您可以尝试这种方式
kony.application.showLoadingScreen("sknLoading"," loading ....", constants.LOADING_SCREEN_POSITION_FULL_SCREEN, true, true, {shouldShowLabelInBottom: "true", separatorHeight:200})
其中sknLoading将在普通皮肤中定义——您将在皮肤底部看到"common"。
您还可以设置背景颜色、字体颜色和其他属性。