Answers for "create imageview programmatically android"

1

set imageview tint programmatically android

imageView.setColorFilter(ContextCompat.getColor(context, R.color.COLOR_YOUR_COLOR), android.graphics.PorterDuff.Mode.MULTIPLY);
Posted by: Guest on June-17-2021
1

android imageview set image from drawable programmatically

In XML :
    android:background="@drawable/imagename 
    android:src="@drawable/imagename"
    
In Code :
	imageview.setImageResource(R.drawable.imagename);
Posted by: Guest on November-06-2021
0

how to create a new imageview in android java

ImageView move = new ImageView(this);
Posted by: Guest on November-24-2020

Code answers related to "create imageview programmatically android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language