开发者

White patches around Custom Button

开发者 https://www.devze.com 2023-01-11 16:04 出处:网络
i am having a screen on which i have painted a imageas a background and i am placing 6开发者_JAVA技巧 custom buttons in a verticalfield manager, every thing is working fine , but when focus comes on t

i am having a screen on which i have painted a image as a background and i am placing 6开发者_JAVA技巧 custom buttons in a verticalfield manager, every thing is working fine , but when focus comes on the last custom button, then it is surrounded by a white patch.. i don't no what the problem is...

Thanks in advance


The following fix usually works for that white background around custom fields. Override the moveFocus method to do the following:

protected int moveFocus(int amount, int status, int time) {
    int val = super.moveFocus(amount, status, time);
    invalidate();
    return val;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消