문제

How can I change item's style at runtime using J2ME Polish?

I'm trying the following code but I'm unable to get it working.

Style style = new Style();
style.addAttribute("background-color", "#FF0000");
item.setStyle(style);
도움이 되었습니까?

해결책

Style style = new Style();                        
style.background = new BorderedSimpleBackground(0xF0F0F0, 0xFF0000, 1);
item.setStyle(style);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top