Android Fit image to full width using Picasso library

Try changing the property of your imageview like this

<ImageView 
                android:id="@+id/lavdateimageView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:adjustViewBounds="true"
                android:scaleType="centerCrop"
            />

And then

Picasso.with(getContext()).load(R.drawable.dddd)
            .fit()
            .centerCrop()
            .into(lavdateimageView)

I had also same problem so I tried this it works fine

Picasso.get()
       .load(IMAGE_URL)
       .fit()
       .centerCrop()
       .into(imageView);

Finally I understood my mistake. I used android:scaleType="centerCrop" and now my image is fit to layout

  <ImageView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:scaleType="centerCrop"
      android:id="@+id/myimageView" />

Tags:

Android