imageview Questions

4

Solved

I am attempting to display an image file as soon as it is selected from a file chooser. The file chooser is restricted to .png and .jpg files with the selected files being stored in a variable of t...
Bypath asked 19/10, 2016 at 0:26

7

I need to create a GUI with SceneBuilder. I added an ImageView to my interface and set the path to my image correctly. The image is showing inside SceneBuilder, but when I run my application, the i...
Engenia asked 1/4, 2015 at 17:43

33

Can anyone tell me why the following code is not working? The Image does not appear at all. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.co...
Wholewheat asked 21/3, 2012 at 3:50

2

Solved

I'm using Android Studio to display an imageView. I'm using pinch zoom to interact with my ImageView. Code: private class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener...
Selfcongratulation asked 17/5, 2016 at 7:42

8

Solved

I have my application that is displaying images with different ratio, resized inside (centerInside) imageView. What I need is to create bitmap from the ImageView including the background (black in ...
Haygood asked 17/1, 2011 at 15:48

8

Solved

I know there are lots of link available to make ImageView Round Corner. But I'm Using Picasso Library for Image Loading.. I refer the link to get result. But the Problem is that I'm Using it in Lis...
Letrice asked 8/6, 2015 at 8:40

2

Solved

How can we make ImageView width and height equal to width of parent ConstraintLayout? So it displays a full width square ImageView. Generally how can one set HEIGHT of some widget equal to WIDTH o...
Lynnelynnea asked 29/9, 2018 at 14:19

28

Solved

I am using the following code to rotate a image in ImageView by an angle. Is there any simpler and less complex method available. ImageView iv = (ImageView)findViewById(imageviewid); TextView tv =...
Nastassia asked 24/1, 2012 at 4:0

13

Solved

i have an app with a gallery of images and i want that the user can save it into his own gallery. I've created an option menu with a single voice "save" to allow that but the problem is...how can i...
Phaih asked 19/12, 2011 at 11:15

21

Solved

How to fit an image of random size to an ImageView? When: Initially ImageView dimensions are 250dp * 250dp The image's larger dimension should be scaled up/down to 250dp The image should keep its...
Cho asked 22/11, 2011 at 19:29

12

Solved

I am working on the crop image class, but encounter a recycled bit map problem: 03-02 23:14:10.514: E/AndroidRuntime(16736): FATAL EXCEPTION: Thread-1470 03-02 23:14:10.514: E/AndroidRuntime(16736...
Savagery asked 2/3, 2014 at 15:20

30

Solved

Need to set tint for an image view... I am using it the following way: imageView.setColorFilter(R.color.blue,android.graphics.PorterDuff.Mode.MULTIPLY); But it doesn't change...
Gatha asked 21/11, 2013 at 13:10

8

Solved

I have a ListView in which there is an ImageView, the image in the ImageView gets loaded dynamically after its fetched from the server. Now, I want these images, of any size, to fit into a circular...
Institutive asked 27/12, 2012 at 7:8

6

I get the Exception from Firebase Crashlytics Fatal Exception: java.lang.IllegalStateException: Fragment MyFragment{122418b (05b123e6-aa8d-4de4-8f7e-49c95018234b)} not attached to a context. at a...
Hamrick asked 31/10, 2019 at 13:1

9

Solved

I have an ImageView that is twice the height of a normale screen ( 960 dip). I would like to scroll it nicely up and down on the screen. The bottom of the screen should contain a button. I have tri...
Anaesthetize asked 17/6, 2010 at 0:36

15

I'm trying to get the real size of an image displayed in an image view. Actually my image is larger than the screen and the imageview is resizing the image to diplay it. I'm looking for this new si...
Worser asked 4/10, 2010 at 12:31

5

Solved

I want to make a screen which contains a top bar and an image. I use TextView for the top bar and ImageView for the image. I want to set padding only to the image view. My xml is given below. The p...
Diabetic asked 24/11, 2013 at 7:51

10

Solved

how can I overlap images half on one another from layout XML file like this image.
Durston asked 11/1, 2017 at 10:10

3

Solved

I've got an ImageView and programmatically I can change its color using imageView.setColorFilter(Color.RED). There is something similar using xml??
Figment asked 9/2, 2015 at 16:24

10

Solved

I have a Base64 String that represents a BitMap image. I need to transform that String into a BitMap image again to use it on a ImageView in my Android app How to do it? This is the code that I ...
Camelopardus asked 29/1, 2011 at 13:28

2

Solved

I need to resize an image to specific dimensions, 100 by 100 pixels for example, in JavaFX. How can I achieve that? Could the Image or the ImageView class be used for this purpose?
Mccue asked 12/1, 2015 at 3:33

19

Solved

I added an animated gif image in an imageView. I am not able to view it as a gif image. No animation is there. It's appearing just as a still image. I would like to know how can i show it as a gif ...
Nakitanalani asked 30/6, 2011 at 11:22

10

Solved

When I change the image programmatically‎, it shows new image on top of the old image which is set originally in layout file? Here is a snippet of my layout file: <LinearLayout android:layout...
Miniaturize asked 3/6, 2013 at 21:58

4

Solved

I have an alarm symbol on my interface. I want it like if anyone clicks on this then he/she can get another interface. so how to write a click event of Imageview. plz give me answer. Thank you
Outsole asked 13/5, 2011 at 10:0

4

Solved

I need to resize an ImageView such that it fits to the screen, maintains the same aspect ratio. The following conditions hold: Images are a fixed width (size of the width of screen) Images are do...
Chrissie asked 13/9, 2012 at 5:45

© 2022 - 2025 — McMap. All rights reserved.