SyntaxFix
Write A Post
Hire A Developer
Questions
initiate LayoutParams .
assign the parent's width and height and pass it to setLayoutParams method of the imageview