Questions tagged [imageview]

Android widget that displays an arbitrary image or drawable, such as an icon.

9865 questions
2
votes
1 answer

ImageView bigger than screen resolution is re scaled wrong

I am trying to build a drawing tool, this drawing tool allow users to select images and place them in a sketch which afterwards they can be manipulated within. All images that belong to the project have been set to the same scale (1:100): the steps…
2
votes
0 answers

The image does not display Firebase Storage

what am I doing wrong? In this code, I load the image into Firebase Storage and then try to display it. But for some reason the display does not work. It loads it to Storage, but does not want to display it. Can Uri not take it right? As for me, for…
shcherbuk
  • 163
  • 8
2
votes
0 answers

Circular image: alternative to setClipToOutline for pre 21

I am seeking a way to create circular images without 3rd party libraries. I found this post that asked the same but had 0 answers. In APIs post/equal to 21 (5.1), I usesetClipToOutline method on a view (because there is a bug where…
JonZarate
  • 841
  • 6
  • 28
2
votes
0 answers

Android ImageView ScaleType bottom-left and top-right

I'm trying to set some ImageView's scaleType so that they're rendered fit bottom-left and top-right (exactly the opposite corners than in fitEnd and fitStart), but been struggling quiet a bit time without success. I'm guessing I need to use matrix…
ssantos
  • 16,001
  • 7
  • 50
  • 70
2
votes
3 answers

How to transform and enlarge imageview into a shape (swift3)

What I am trying to do is take a square imageview and make it a 5 point imageview in the shape of a 3 point triangle at the top and the bottom to points in a base. public func shapeImage(with bezierPath: UIBezierPath, size: CGSize, fillColor:…
user7459574
2
votes
2 answers

When you click on a cell, the placeholderImage is transferred, after I go back down, go up and click on the same cell the photo is changing

I have a model Where in ImageViewURL I get a photo and save it in ImageView, and the code for downloading import Foundation import UIKit class Modal:NSObject { var name:String? var date:String? var ImageViewURL = "" var ImageView:UIImage? var…
programmer
  • 99
  • 8
2
votes
2 answers

Bitmap is null when convert imageview in bitmap

I need put effect blur in image, but when convert imageview into bitmap it is showing an error (NullPointerException). See the code: // mImages is a list of string (links http of images in web) …
Pablo SN
  • 33
  • 4
2
votes
3 answers

R.styleable cannot be resolved

hai friends...my java file indicate this error: R.styleable cannot be resolved.... my xml file:
RBJ
  • 951
  • 8
  • 22
  • 34
2
votes
2 answers

Java Android Change Position of an ImageView dynamically

I am new in program Java/Android and got a small problem. I searched why my code doesn't work but I didn't find an answer - so here is my Problem: I want to change the position of an ImageView at runtime by a Button. I have two buttons - left and…
rcode
  • 49
  • 4
2
votes
2 answers

Android - selectable recyclerview item with selectable views in it

I have got a RecyclerView item looking like this I want to achieve that when I click on item the ImageView will get overlay over it and TextView will become bold. I know how to use adapter and where to handle item clicks. I also know how to make…
Matej Košút
  • 590
  • 2
  • 10
  • 27
2
votes
0 answers

Android scratch View 2 Layers

I'm using Android-WScratchView to implement a scratch effect in my app. What my app does is a "cleaning" effect. I have a picture of a clean t-shirt and another picture of the same t-shirt but dirty (with some mud). Android-WScratchView works great…
Ale
  • 2,282
  • 5
  • 38
  • 67
2
votes
5 answers

Check if the imageView has a drawable

if (image.getDrawable().getConstantState().equals(getResources().getDrawable(0).getConstantState())){ image.setVisibility(View.GONE); }else{ image.setVisibility(View.VISIBLE); } That is, if image has not any…
2
votes
2 answers

How to get an image from gallery (or drawable) to update an ImageView?

in my code I use an intent to take a picture, but I really don't understand where I can get this image after that. My goal in this little application is to take a picture and then to update an ImageView with this picture (and to open google maps…
Hix
  • 33
  • 5
2
votes
5 answers

How to load only part of image with Glide from Firebase?

I have imageview, which should show only part of image (part which fits into part of screen). After user click, it will open whole image. But I can´t figure out, how to load only part of image into imageview. Problem is that Glide fits image into…
Michalsx
  • 3,446
  • 5
  • 33
  • 46
2
votes
5 answers

Android change imageview size dynamically by image size

Hi I have a ImageView which displays image from url. The images are of different sizes. They may be either square shaped or portrait shaped or landscape shaped. I need to set the image view size accordingly with out stretching or cropping. Say if…
Suresh Kumar
  • 2,014
  • 3
  • 19
  • 32