Such a bad luck, I will not understand what it is. Imageviews are created dynamically, images are loaded into them using Picasso. The image is compressed in height and width. Tell me what's wrong?

for (int i = 0; i < portfolio.size(); i++) { LinearLayout portfolioLayout = (LinearLayout)findViewById(R.id.PortfolioLayout); // Добавляем новый ImageView ImageView imageView = new ImageView(masterDetails.this); imageView.setPadding(2, 2, 2, 2); imageView.setMinimumHeight(100); imageView.setMinimumWidth(100); LinearLayout.LayoutParams imageViewLayoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); imageView.setLayoutParams(imageViewLayoutParams); portfolioLayout.addView(imageView); Picasso.with(masterDetails.this).load(portfolio.get(0).preview_path).into(imageView); } 
  • You did not explain how you want the picture to be displayed. Picasso has resize and fit methods - JuriySPb
  • It is necessary that the picture is displayed as is, its actual size - Newbie
  • I tried fit. Did not help. - Newcomer
  • Then try to hang up a listener at the end of the download and assign sizes for the ImageView according to the size of the downloaded picture - Yuriyi

0