Skip to content

Instantly share code, notes, and snippets.

@mako34
Created September 16, 2013 23:56
Show Gist options
  • Save mako34/6588318 to your computer and use it in GitHub Desktop.
Save mako34/6588318 to your computer and use it in GitHub Desktop.
Change "frame" of UI element on android
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) listViewSubItem.getLayoutParams();
params.leftMargin = 300;
//params.topMargin = 10;
listViewSubItem.setLayoutParams(params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment