yes, if you use XML, then find the identifier of this line output, for example
ll=(LinearLayout)findViewById(R.id.linear1)
Then set its background as
ll.setBackgroundResource(R.drawable.image_name);
else here, as your code shown here, you can directly go to
ll.setBackgroundResource(R.drawable.image_name);
user766090
source share