Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
2 answers
Image doesnt cover image view fully
I am trying to apply image on an image view instance...but it doesnt cover it properly...
please advise
here it is my image view code:
android:id="@+id/imageViewVessel"
android:layout_width="fill_parent"
android:scaleType="fitStart"
…

devaditya
- 321
- 9
- 21
2
votes
0 answers
Partially show imageview
I am trying to create an animation where an image view is moving up and down vertically. I have a line that the imageview is passing through, and my intention is to have the imageview hide partially when passing through the line. For example, if the…

Patrick
- 165
- 2
- 2
- 8
2
votes
5 answers
Android: put image into selected ImageView
This question is only about a design doubt. I would appreciate some help on it.
Basically I have 6 different ImageView's, all of them are connected to the same method called onImageViewClicked, this method will check which of the 6 ImageViews was…

codeKiller
- 5,493
- 17
- 60
- 115
2
votes
3 answers
image change in ImageView when its clicked
I have created a ButtonBarLayout with 5 ImageView inside it, I want to change image when it's clicked and focused, just like Instagram.
P.S I even used selector.xml as below, but it doesn't work
selector.xml

MNFS
- 305
- 4
- 17
2
votes
0 answers
Android: Image Mapping (Multiple Areas)
I am currently using the below code as a basis for image-mapping on Android.
The code works by having a invisible mask of an image with various coloured "hotspots".
It then uses an OnTouchListener to determine the colour the user has touched,…

Calvin-Castle
- 111
- 1
- 8
2
votes
3 answers
Why Glide is not loading https images in android?
I am trying to load https images in imageview using Glide. The image is not loading, but if I provide some local image (ex. R.drawable.error_image), it loads.
imagePath =…

Srihari
- 2,387
- 9
- 51
- 82
2
votes
1 answer
Issue when scaling image using matrix in ImageView
I have the following snippet of code in the onCreate method of a class that extends Activity:
ImageView view = (ImageView) findViewById(R.id.ImageView01);
BitmapFactory.Options bmpFactoryOptions = new…

vanevery
- 2,770
- 1
- 20
- 19
2
votes
4 answers
Android - Imageview in listview how to reduce the lag?
I'm coding an app with android studio. This is a todolists manager in which you can also add images.
I have a Listview containing items with an ImageView in each. But when there are images to display the listview scrolls really slowly and the app…

MBek
- 155
- 10
2
votes
2 answers
Loading image from uri android
I am currently trying to load a Uri of an image i have saved into my MySQLite database into a RecyclerView.
The code for the RecyclerViewAdapter :
public void onBindViewHolder(MyCatchesAdapter.MyViewHolder holder, int position) {
MyCatch myCatch…

pavlos
- 547
- 1
- 9
- 23
2
votes
2 answers
Can't load image from uri after reload app
*//Sorry for bad eng, but in stackoverflow.ru I have no answers you my last chance*
I have app with 1 activity, which should take image\photo from galery, save uri of this image\photo in sharedPreferences, and after reload, app load image from…

Bellkross
- 37
- 1
- 9
2
votes
0 answers
Android: How can I write a custom ImageView with Progress?
I have a lazy image loader, and would like to have a custom ImageView that shows progress while the image is loading. I'm just not sure how to achieve this. I know it must be a compound control, but I'm not sure how to do it. The behavior I want is…

Christopher Perry
- 38,891
- 43
- 145
- 187
2
votes
5 answers
How to set image at bottom of Imageview, but at image source not image size
Now I am getting the output like this(Text is at bottom of the screen),
But I want output like the following image.
This is my XML code:

Keyur Nimavat
- 3,595
- 3
- 13
- 19
2
votes
1 answer
Android keep TextView at fixed location inside ImageView
I am currently trying to get some kind of dynamic credit card picture, but what I want is to be able to set the numbers and the creditcard, which is an imageview. Now I need my textview to be at the same location for all screensizes, but I have…

Sam
- 95
- 11
2
votes
0 answers
"SkImageDecoder::Factory returned null " when trying to decode byte array into imageView - Android
In my app I try to store an image from an imageView as a byte array and store that in a databse
ImageView imageView = (ImageView) findViewById(R.id.imgpreview);
Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap();
…

Jack Burt
- 23
- 3
2
votes
2 answers
changing images with fade animation
I need to create animation where I will display 3 images. Each image should completely fade in and fade out (slow blink) and then next image should be shown. I have done it by creating 3 animations. Each animation starts the next animation in…

Daniel
- 83
- 2
- 5