You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user is able to upload a default image using picasso, and the uri is stored. I tried the following approach to be able to display the image from the uri for the image stored in the phone gallery but it does not work... any suggestions please?
val imageView = PDFImageView(applicationContext)
val imageLayoutParam = LinearLayout.LayoutParams(
60,
60, 0F
)
if(user.logoUrl != null){
val url = URL(user.logoUrl)
val imageBmp = BitmapFactory.decodeStream(url.openConnection().getInputStream())
imageView.setImageScale(ImageView.ScaleType.CENTER_INSIDE)
imageView.setImageBitmap(imageBmp)
// imageView.setImageResource(user!!.logoUrl)
imageLayoutParam.setMargins(0, 0, 10, 10)
imageView.setLayout(imageLayoutParam)
horizontalView.addView(imageView)
}
thanks
The text was updated successfully, but these errors were encountered:
Hi Tej,
The user is able to upload a default image using picasso, and the uri is stored. I tried the following approach to be able to display the image from the uri for the image stored in the phone gallery but it does not work... any suggestions please?
thanks
The text was updated successfully, but these errors were encountered: