Questions tagged as 'imageview'

1
answer

How to move an enlarged image with a finger in ImageView?

Based on in this question answer when you are zoom as you move the image with a finger to see the other part of the image.     
asked by 05.02.2016 / 00:22
2
answers

Why does not my image appear when I run the app?

I have the following xml code in Android Studio: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app = "http://schemas.android.com/apk/res-auto"...
asked by 27.10.2016 / 02:38
1
answer

Why is the image distorted (does not maintain proportions) in ImageView?

I have some images inside the folder drawable and I call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid); linear.addView(image); } Wh...
asked by 22.03.2016 / 14:43
1
answer

How to check if two drawables are the same?

Good evening!    I'm having difficulty retrieving the current image from my android imageView. It is an image to favor for the user (give like), and I want when the user clicks on that image, I check if the current image is = a heart icon with n...
asked by 21.05.2018 / 04:10
1
answer

Working with Base64 image in Android Studio

I have an app in Android Studio and would like to use Base64 image in ImageView and ImageButton. I already know how to convert the image (from the Drawable folder) to String, but I do not know how to apply this as a background for my items....
asked by 25.06.2016 / 07:16
2
answers

Difference between setImageResource and setImageDrawable

To set an image in ImageView I did the following using setImageDrawable : imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); When searching ImageView, I also found the setImageResource method and it al...
asked by 15.11.2016 / 17:11
3
answers

How do I leave a round image?

I need the image to be round as well as the WhatsApp contact images. I've tried to do it in some ways, for example with the tag < shape > , but I did not get the correct result. How could you get this result? Example:     
asked by 12.04.2016 / 19:15
1
answer

Upload imageView using image path

I have a listView loaded with DB data on a screen, on another screen my app beats a photo and saves the photo path in the DB, until then I was able to do it normal, now how to put the image in Imageview ListView using the p...
asked by 24.03.2016 / 03:28
1
answer

How to zoom in an imageView?

I'm looking for the implementation of a zoom on the internet but I do not think so. I found only one zoom that is applied across the image. I needed this standard zoom which has in most applications that allows zooming in any point of the image....
asked by 20.01.2016 / 13:49
1
answer

How to find out if an ImageView has an informed photo

Hello, I want to create a conditional that checks whether all the fields on the screen were informed by the user or not. If anyone has not been informed, I would like to submit a toast showing the error. The problem is that on this screen I have...
asked by 22.10.2017 / 22:44