Answers for "set drawable to textview programmatically android"

1

textview set drawable right programmatically

TextView textView = (TextView) findViewById(R.id.myTxtView);
textView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.icon, 0, 0, 0);
Posted by: Guest on May-18-2021

Code answers related to "set drawable to textview programmatically android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language