0

In the android app that I am building, the users can upload their profile pictures. These picture would then go into a "grid view". In my case the column width of grid view is lesser than the image size.

So in order to make it fit, would I have to reduce the image size at the backend server before uploading it into the app.

Robert Moskal
  • 20,867
  • 7
  • 59
  • 83
mayank mahajan
  • 691
  • 1
  • 5
  • 3

1 Answers1

1

You can use ThumbnailUtils to create thumbnail of the image in the Android code itself. See this answer on Android how to create runtime thumbnail for more.

Community
  • 1
  • 1
Shobhit Puri
  • 25,319
  • 9
  • 91
  • 117