imageView.getLayoutParams().height = 130;
imageView.getLayoutParams().width= 230;
Here 130 and 230 are DP or pixel?
CodePudding user response:
They're in pixels. All lengths and widths outside of xml are in pixels. You can convert DP to pixels by using Converting pixels to dp if you want to specify the size in dp.