コード例 #1
0
 @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);
   }
 }
コード例 #2
0
ファイル: Form.java プロジェクト: dcorking/ai-nearfield
 @Override
 public void setChildWidth(AndroidViewComponent component, int width) {
   // A form is a vertical layout.
   ViewUtil.setChildWidthForVerticalLayout(component.getView(), width);
 }