Skip to content

Instantly share code, notes, and snippets.

@dario61081
Created March 15, 2019 01:06
Show Gist options
  • Save dario61081/7ce116e5743e8ced16909fe7bbb2d30b to your computer and use it in GitHub Desktop.
Save dario61081/7ce116e5743e8ced16909fe7bbb2d30b to your computer and use it in GitHub Desktop.
Como agregar en programacion el drawable y establecer padding.
textView.setText(getItem(position));
// textView.setPadding(15,0,0,0);
textView.setCompoundDrawablePadding(20);
textView.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.mapa, 0,0,0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment