-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
Description
Hello,
Can it be possible to make image width to match_parent( same as device width) when there is only one image in list? I just apply below code but no luck.
int imgWidth = width[0] * (int) mContext.getResources().getDisplayMetrics().density;
int imagHeight = height[0] * (int) mContext.getResources().getDisplayMetrics().density;
int height = (deviceWidth * imagHeight) / imgWidth;
holder.imageView.getLayoutParams().height = height;
holder.imageView.getLayoutParams().width = deviceWidth;
Reactions are currently unavailable
