Monday 24 September 2012

android: Add params to already existing View in the XML


 CheckBox cb12=(CheckBox)child.findViewById(R.id.subtext);
 RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)cb12.getLayoutParams();
  params.setMargins(37, 0, 0, 0);
 cb12.setLayoutParams(params);

No comments:

Post a Comment