In creating a button I find I can only reduce the padding to a certain point. The code I'm using is:
Style nameStyle = btnname.getAllStyles();
RoundRectBorder roundBorder = RoundRectBorder.create().cornerRadius((float) 2);
nameStyle.setBorder(roundBorder);
nameStyle.setFgColor(0xffffff);
nameStyle.setBgColor(0);
nameStyle.setBgTransparency(64);
nameStyle.setPaddingUnit(UNIT_TYPE_PIXELS);
nameStyle.setPadding(Component.BOTTOM,20);
nameStyle.setPadding(Component.TOP,20);
The padding I'm observing is the distance between the edge of the text and the edge of the border. If try to set the padding below 20 there is no change.
-Dennis