0

I use ViewPager2 in android application. The width of it is match_parent and the height is 300 dp. I use Picasso library to load images from URL to ViewPager2. There is one problem is when I use a tablet, the image's width must match to parent but height is fixed and it makes images ugly.

What is the best way to show images but on different devices?

Picasso.get()
    .load(slideritem1.getimage())
    .fit()
    .into(imageView);
Son Truong
  • 13,661
  • 5
  • 32
  • 58
sara s
  • 69
  • 1
  • 8

0 Answers0