Questions tagged [android-imageview]

Displays an arbitrary image or a drawable, such as an icon or an xml defined graphical element.

Displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers) and it will take care of computing its measurement from the image so that it can be used in any layout manager. It also provides various display options such as scaling and tinting.

More information can be found in the documentation for the ImageView class.

4273 questions
1
vote
0 answers

Android Marshmallow 6.0 Cannot Create Lazylist File

I have small problem in Android Marshmallow OS. I can use Android 6.0. But I can not see ImageView. Ex: First, I try 5.0 OS, Everything OK. Then I can use 6.0 but I don't see Imageview? What's going on? I use Imageloader.java (Because create thumb…
UfukCampus
  • 33
  • 5
1
vote
1 answer

ImageView is covering Recyclerview Options when bottom Navigation Bar is Active

I have developed an app and it is currently in the BETA testing stage and I am working through bug fixes. This one particular issue has been driving me nuts; the issue I have is that certain android devices have bottom navigation bars, (the…
1
vote
3 answers

AndroidRuntime: java.lang.OutOfMemoryError

I am trying to load all the images in image view but after 12 images the application crashes with out of memory I tried to recycle the bitmap but it fails with unable to reuse bitmap canvas Here is my code public void LoadImageArray() { …
go sgenq
  • 313
  • 3
  • 13
1
vote
0 answers

Matrix imag view layout

I am trying to create a simple memory game. My basic layout is from two fragment one with the cards and one with the moves history. But I am unable to dynamically generate the layout as I wanted. I want the cards to fit the screen all the time (if…
1
vote
1 answer

How to send Media files like whatsapp in android

Am developing an app that enables one to send images,audio and video through the internet. the person receiving this media files must have installed my app in his device. What i can do right now is compress the image to be sent. i don't know where…
1
vote
1 answer

LinearLayout not resizing ImageViews correctly

As part of the on-boarding for my app, I have a series of translucent overlays that highlight the UI. Each one is a LinearLayout, initially invisible (actually "gone"), that I make visible in turn. I am having a very tough time getting one of…
1
vote
2 answers

Android - Imageview with multiple bitmaps

I am working on a chat application, which does need to show the profile picture of each person whom I'm chatting with. If it is a group conversation I need to design a layout like FB as below I'm thinking of implementing it using LayerDrawable but…
1
vote
2 answers

Move ImageView freely on screen

I have an ImageView in my layout and I want to move it freely everywhere. I have found some tutorials about moving it with OnTouchListener actions (and I've done my job this way but I don't like it) and some people suggest to use drag and drop api…
Siavash
  • 308
  • 5
  • 17
1
vote
2 answers

Setting image view bitmap as a returned bitmap

I'm trying to set the bitmap image of an image view to a bitmap that is returned by another class, below is code snippet:- imageView = (ImageView) findViewById(R.id.imageView); Bitmap myBitmap = myModel.loadBitmap(getResources(),…
AdamW95
  • 51
  • 1
  • 5
1
vote
0 answers

Android Rotate Animation left to right 3d

In my android aplication, I need to rotate an imageview from left to right like in 3d, I did rotation like clockwise from left right, But I didnt got a proper solution for left to right can anybody help me, I am giving my rotation code it is working…
roshanpeter
  • 1,334
  • 3
  • 13
  • 32
1
vote
2 answers

How can i compare ImageView with R.drawable?

I want to check if one matrix with R.drawable items contains the current ImageView. A small part of my code is: Integer[] redColor = { R.drawable.red_circle_, R.drawable.red_cross_}; Random random = new Random(); int…
Panagiotis
  • 511
  • 8
  • 26
1
vote
4 answers

How to write my name on a image

I want to change the my name and designation which in on ImageView but not making a layout. I want to write it on image at runtime. I just want to select the image and put my name and after writing on image I want to upload on server.I am unable to …
1
vote
1 answer

android - Change image position in imageview using glide

I'm working with Glide in wallpaper app I load the image with glide and show in imageview, but the image after loaded is on top of the imageview. How can i fix this and bring it in the center of imageview? Code: Glide.with(this) .load(data) …
hamedjj
  • 658
  • 6
  • 20
1
vote
1 answer

Wrong image file path obtained from Android file manager

In my application I would like to open an image and "load" it to the app using File Manager. I've already doneit using Intent.ACTION_GET_CONTENT and onActivityResult() method. Everything works fine, except from the path which I get. It is in a…
fragon
  • 3,391
  • 10
  • 39
  • 76
1
vote
2 answers

Image view shadow like material design

I know there are many questions but it do not work out for me so i am posting this question: I a adding a circular Imageview to my application, and i want some elevation/shadow to it so that it worked on all Api not only after 21. so what should i…
Parth Anjaria
  • 3,961
  • 3
  • 30
  • 62