我正在开发一个代号为one的应用程序。我需要删除Accordion组件的边框。 (或)有没有改变手风琴的边框颜色.. 有人可以指导我......
答案 0 :(得分:1)
答案 1 :(得分:0)
要从代码中删除(隐藏)手风琴的边框,您可以将其边框颜色定义为与背景颜色相同,并尽可能窄。
Border border = Border.createCompoundBorder(Border.createLineBorder(1, 0xffffff), Border.createLineBorder(1, 0xffffff), Border.createLineBorder(1, 0xffffff), Border.createLineBorder(1, 0xffffff));
my_accordion = new Accordion(ifont_keyboard_right, ifont_keyboard_down);
my_accordion.getAllStyles().setBgColor(0xffffff);
my_accordion.getAllStyles().setBgTransparency(255);
my_accordion.getAllStyles().setPadding(0, 0, 0, 0);
my_accordion.getAllStyles().setMargin(0, 0, 0, 0);
my_accordion.getAllStyles().setBorder(border);