@Override
 public void setChildWidth(AndroidViewComponent component, int width) {
   if (orientation == ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL) {
     ViewUtil.setChildWidthForHorizontalLayout(component.getView(), width);
   } else {
     ViewUtil.setChildWidthForVerticalLayout(component.getView(), width);
   }
 }
Example #2
0
 @Override
 public void setChildWidth(AndroidViewComponent component, int width) {
   // A form is a vertical layout.
   ViewUtil.setChildWidthForVerticalLayout(component.getView(), width);
 }