Skip to content

Instantly share code, notes, and snippets.

@necronet
Created August 28, 2009 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necronet/177234 to your computer and use it in GitHub Desktop.
Save necronet/177234 to your computer and use it in GitHub Desktop.
protected TextView genericView() {
TextView txtView = new TextView(ctx);
txtView.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, 64));
txtView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
txtView.setPadding(38, 0, 0, 0);
return textView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment