android-imageview Questions
1
I can successfully load an image with glide into an Image View and crop it with the .circularCrop() method.
Glide.with(this)
.load("https://i.imgur.com/QjQGiPj.jpeg")
.circleCrop()
.in...
Indenture asked 30/12, 2021 at 18:59
9
Solved
What I Have
I have an arrow image (like the left one). When the user clicks on it, it should rotate 180 degree with an animation and should look like the right one.
What I Have Done
private vo...
Dihedral asked 13/5, 2015 at 8:22
3
Solved
I would like to apply a fade-in animation to an ImageView to create the effect that the image, which is loaded from a url, fades in when the download is completed.
I know how to download an image...
Diametral asked 2/5, 2012 at 15:28
2
Solved
I have a requirement where I have an ImageView and a button.
http://i1289.photobucket.com/albums/b509/salikclub/Rotate-Last-Start_zps0d2fced8.png
I want to rotate the image when I click the butt...
Aron asked 2/8, 2013 at 11:45
4
I have a gallery of images with different sizes. Each image is displayed inside an ImageView sequentially (through OnTouchListener). I need to know the position of the frame of the picture I'm show...
Chimere asked 24/4, 2013 at 13:26
2
I have browsed around and tried multiple suggestions for how to display a recorded video to an ImageView without success.
This code works fine for taking an image and having the image displayed. T...
Dioptase asked 19/5, 2016 at 4:44
58
Solved
In Android, an ImageView is a rectangle by default. How can I make it a rounded rectangle (clip off all 4 corners of my Bitmap to be rounded rectangles) in the ImageView?
Note that from 2021 onwar...
Particulate asked 17/3, 2010 at 4:32
6
Solved
Is it possible to create a splash screen with a logo that maintains its aspect ratio while the background image can be resized independently? I'm currently using several .png files for different re...
Pyromancy asked 28/7, 2017 at 17:21
5
Solved
I am having problems with my xml file. I want to show a picture but the picture is not showing. Strange thing is I am using the same picture in an other part of my app and there everithing is worki...
Jenkins asked 9/4, 2017 at 20:46
6
Solved
I need to find a way to change the color of bitmap in Android. I need to replace/change colors of oval image smoothly in my application depending on int value. I need something like if myValue=5 th...
Ama asked 4/5, 2012 at 13:34
4
Solved
In an application I've built I noticed that the ImageViews are not tinted on devices running the new Android Lollipop. This is the code that used to work correctly on older versions of the OS:
<...
Judaism asked 27/11, 2014 at 16:14
10
Solved
How do you download and save an image from a given url in Android?
Hodgson asked 21/3, 2013 at 13:50
10
Solved
Is there really no XML attribute counterpart to setAlpha(int)?
If not, what alternatives are there?
Premiere asked 8/2, 2011 at 8:46
4
Solved
I want the drawable inside my ImageView to be shown aligned to the bottom (of the Imageview), and not centered.
Is it possible to do that?
Asphalt asked 31/8, 2011 at 11:29
2
Solved
I'm working with a Voice recognition application and I want to make my play/stop button "pulse" when it's recording. Something like this:
I have tried to make a ScaleAnimation, doing the button ...
Prudential asked 16/5, 2016 at 21:9
6
Solved
I have two circular image view, one is containing the profile pic and other is for the camera. Following is my XML file:
1. Welocome.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLay...
Torsi asked 3/2, 2016 at 9:41
5
Solved
So I have an ImageView set with
android:maxHeight="100px"
android:maxWidth="250px"
android:minHeight="100px"
android:minWidth="250px"
android:scaleType="centerInside"
This image view is used to...
Culminate asked 24/11, 2010 at 18:49
4
Solved
I want to add the transparent black color on top of the image and make it darker.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageVi...
Edmee asked 4/10, 2017 at 13:2
7
Solved
I have created an ImageView and I can see the preview of the camera and load the captured image into the ImageView and I wanted to store the image into a directory in my internal memory. I have ref...
Ger asked 8/8, 2016 at 2:54
1
I've got a simple layout:
<RelativeLayout
android:id="@+id/myP"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<androidx.ca...
Sanious asked 1/5, 2021 at 18:43
7
Solved
I am using this code to save pic in Imageview but the image is stretched when dsave in imageview. Camera preview is prefect and click right image but when i set that image in imageview the image is...
Prim asked 29/2, 2016 at 7:28
2
Solved
Here I am trying to fit the entire image as the background for card view. but it takes some space as shown in the picture. I tried android:scaleType="centerCrop" and fitXY and others also...
Langley asked 29/6, 2020 at 5:23
26
Solved
In Android, I defined an ImageView's layout_width to be fill_parent (which takes up the full width of the phone).
If the image I put to ImageView is bigger than the layout_width, Android will scal...
Hauge asked 26/3, 2010 at 8:41
1
I need to show the collection of image in a collection view of images in android. https://i.sstatic.net/mdZzI.png
Used recycler view not helped
For 2 images the view is in equal two half
For three...
Ruder asked 30/10, 2020 at 11:46
3
Solved
I have a little problem with databindig in Android.
I want to set an ImageView's visibility through databindig, and I think I have done everything that can be found on Android blogs in connection w...
Desmarais asked 9/4, 2020 at 22:28
© 2022 - 2024 — McMap. All rights reserved.