Answers for "set drawable programmatically android"

0

android studio setbackground

RelativeLayout layout =(RelativeLayout)findViewById(R.id.background);
layout.setBackgroundResource(R.drawable.ready);
Posted by: Guest on November-22-2020
0

set drawableleft programmatically android

Drawable img = getContext().getResources().getDrawable(R.drawable.smiley);
img.setBounds(0, 0, 60, 60);
txtVw.setCompoundDrawables(img, null, null, null);
Posted by: Guest on November-15-2021
0

set drawableleft programmatically android

txtVw.setCompoundDrawablesWithIntrinsicBounds(R.drawable.smiley, 0, 0, 0);
Posted by: Guest on November-15-2021

Code answers related to "set drawable programmatically android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language