Questions tagged [imageview]
Android widget that displays an arbitrary image or drawable, such as an icon.
9,875
questions
0
votes
0
answers
35
views
Get image directory from ImageView directory in javafx
ive been rectently working with javafx. In my code i've came across an annoying feature of javafx and i was wondering if there was a way of getting around it. Through my research ive realised '...
0
votes
0
answers
8
views
Code works in Activity but don't work in other Activity
I tried to show my App logo in the main activity but the image view does not show
I used this code to show the app logo in the main activity but the image view does not show, however the same code ...
0
votes
0
answers
31
views
Panning and Zooming Images with CenterCrop in Android
I'm trying to implement a feature in my Android app where users can pan and zoom images within an ImageView that has its scaleType set to centerCrop and loading image by Glide into ImageView. The goal ...
0
votes
0
answers
37
views
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x105757d44) when set image
i tried to set an image from Firebase to ImageView using SDWebImage, i get the url of firebase, but when i try to set the image i get the error in DispatchQueue.
I download the url and get the url of ...
0
votes
2
answers
40
views
Animate Alpha ImageView Fade In Fade Out
In the observe method of a view model, a new Observer is listening for an API response which is working correctly. However based on the response, it is calling the following code to show a success or ...
2
votes
2
answers
56
views
Android Kotlin ImageView inside RecyclerView.Adapter doesn't update as expected
After finally implementing icons for device types in my server, I replaced the temporary drawables I previously used with the icons from the server and load them using coil. The ImageView for them is ...
0
votes
1
answer
48
views
The image in imageview is blurry (Android java)
while the imageview I put in the activity appears clear on the design screen, it appears clear on the emulator and the real phone. How can I fix this? the image is in the "drawable/xxhdpi" ...
0
votes
1
answer
62
views
Viewpager Transition not smooth for ImageViewer when swiping up or down
I have a transition effect to swipe from one image to the next and to the previous one. The swiped image is beeing moved outside of the screen an the previous/next image enters form the opposite side ...
0
votes
0
answers
26
views
How to show appropriate image for each pdf file in recyclerview using Glide?
I'm trying to create thumbnail of a file and show it in icon of recyclerview. I'm using Glide to show those images but when I open the app, the images are displayed repeatedly and they're not correct. ...
0
votes
2
answers
53
views
How to fit an image perfectly inside GridView Android Studio
I am trying to create a project where I used a GridView to show images. But the problem is images can have various sizes. Some of them are big, some of them are small. So I want to fit the images in ...
0
votes
1
answer
36
views
Recyclerview not showing images getting from device media store- Android
I am trying to show all images in recyclerview after reading from device gallery, but recyclerview is not showing any images.
MainActivity:
class MainActivity : AppCompatActivity() {
private ...
0
votes
1
answer
37
views
Adding images to an edit text view
How do I add an image to an edit view in Android Studio something similar to this:
Where an image view shows up in an edit text view
I've thought of nesting views but that's not an option in Android ...
1
vote
1
answer
93
views
Is there any way Beeware is able to to display a picture on android phone?
I build a Beeware app, and would lke to find a way to display a .png picture on my android phone from the phone storage. I understand that the Toga GUI in Beeware does not support neither ImageView ...
0
votes
0
answers
10
views
Trouble Opening Android App WebView or Loading in Image View to Shared Image
Good morning everyone, I have this issue with Android Gradle Java that I haven't been able to solve. I have this URL "file://192.168.10.2/Pictures/logo.png" which points to a shared folder ...
0
votes
2
answers
42
views
how can i add an image on the border of the cardview
the design I want to make
the image view in the left side of the card view in which 'KM' is written I want to know how can i make the same design in my app in Android Studio using XML and Java
I have ...
0
votes
0
answers
18
views
Change image view scale type and then scaled image show in another image view
change image view scale type and then scaled image show in another image view
ex -
ImageView imageview1 = R.id.imageview1;
ImageView imageview2 = R.id.imageview2;
imageView.setImageBitmap(bitmapValue);...
0
votes
1
answer
19
views
Prevent drawing lines on black portion of an imageview
While drawing a line or circle using paint i can able to draw on the black portion of the imageview.The image is a custom imageview with zoom that extending to AppCompactImageView.And for drawing ,we ...
0
votes
0
answers
32
views
How to add pinch zoom in/out to Android Studio ImageView?
For a while now, I have been struggling with adding zoom in/out to my images in Android Studio Kotlin project. I have tried numerous things from different sources and nothing worked.
Does anyone have ...
0
votes
0
answers
17
views
How to create method Eraser in class custom ImageView?
I have created a custom imageview class. Here I use the function
public void setNewImage(Bitmap alteredBitmap, Bitmap bmp, float paintSize, int paintColor)
in which alteredBitmap is a bitmap that ...
0
votes
1
answer
16
views
image is cropped and has rounded corners
I'm trying to load an image into an image view:
but the image is cropped inside the image view:
<ImageView
android:layout_width="wrap_content"
android:layout_height="...
0
votes
1
answer
128
views
Fresco java.lang.UnsatisfiedLinkError: dlopen failed: library "libnative-imagetranscoder.so" not found - Android Studio - Java
Adding this did not solve my problem
implementation("com.facebook.fresco:nativeimagetranscoder:3.0.0")
but this solved my problem with Android Studio with Java in gradle dependencies
...
0
votes
2
answers
26
views
image is cropped inside the image view
I'm trying to load an image into an image view:
but the image is cropped inside the image view:
<ImageView
android:layout_width="wrap_content"
android:layout_height="...
0
votes
1
answer
26
views
How to check at runtime if an imageview came from a local or remote resource?
If I'm running as a third party library within an android application, and I want to check whether the imageviews on screen were loaded from locally bundled resources or were loaded from a remote uri -...
1
vote
1
answer
46
views
How to set onClick Listener on ZoomageView
I am Making gallery app for android in kotlin.I am using ZoomageView for displaying image in fullScreen.I also want to show Menu and bottom for share,add/remove Favorite etc on singel tap of imag ...
0
votes
0
answers
26
views
android studio responsive textView,ImageView and Text
I have ImageView and TextViews in my game. I put TextView in ImageView and translate text to all languages. I ran into a problem. TextViews overflow from ImageViews, how can I make it suitable for all ...
0
votes
0
answers
24
views
How do I make several ImageViews scale based on the screen size without changing their position relative to each other?
A part of an app I'm making in Kotlin in Android Studio contains a map with provinces. (See image) Replication of map of the Netherlands All of the provinces are different ImageViews, because I need ...
0
votes
1
answer
63
views
Cannot invoke "javafx.scene.image.ImageView.setImage(javafx.scene.image.Image)" because "this.Image1" is null
I am using FXML to make this JavaFX program, and I have run into certain errors
I am trying to make the images change after pressing a certain button 3 times, but when I press the button three times ...
0
votes
1
answer
36
views
Vector drawable scaling in ImageView on Android
I got a kind of schematic presentation of data that is stored as a vector drawable, obtained from an original image in SVG format. I need to zoom it in and out, but after changing scaleX and scaleY ...
0
votes
0
answers
15
views
while scrolling Images gets rotate in imageview in recycleview
enter image description hereloading 200 images from url in array and showing in recyclerview but while scrolling the rendered images gets rotate , it get tilt in the imageview. I have used Glide, ...
0
votes
0
answers
21
views
First call to Glide load is slower
I have an app which loads images in a recyclerview. In order for it to be smooth, images are loaded using Glide. What I have noted is that the first call to Glide, for example
Glide.with(ctx).load(R....
0
votes
0
answers
38
views
Android Home Screen widget ImageView radius
I want to give rounded corners to my ImageView in Android with XML. I tried all the other solutions (CardView and ShapeableImageView) but none of them worked.
This is my current code:
<?xml version=...
0
votes
0
answers
23
views
How to get non-visible item view details in GridView
I am working on an Android project. When I try to select images, it’s working fine. However, when I try to delete images and handle the text view, at that time getChildAt() is becoming null; only ...
0
votes
0
answers
17
views
viewpage2 imageview click current image open another activity current image show after swipe next image in kotlin
I have image ArrayList. First Activity imageview in viewpager2 and second Activity fullscreen imageview in Viewpager2.
when First Activity Third image click to open Third image in second Activity ...
0
votes
1
answer
27
views
How can I set downloaded image as background in activity?
I get image from backend into variable ImageView and wish to set this image (which not in resourse files) as background in activity. I surf in internet, but found only variant with resource (drawable)....
1
vote
0
answers
68
views
Android PhotoPicker returns usi that can't be uploaded to ImageView
I'm using android 13 and I'm trying to obtain uri from PhotoPicker. Unfortunately the uri returned has a problem to be transfered to ImageView. Here is how I do it:
private val ...
0
votes
0
answers
19
views
Difficulties to set outlines of an ImageView using a drawabale ressource file
I want to set a background on my imageView corner-rounded outlines using a drawable resource file . But when i set it ? i can't even see the outline . Seems that the image is hidding the background , ...
1
vote
1
answer
47
views
Draw to ImageView while move and zoom
If the ImageView would be fitXY and not matrix every drawn pixel would be correct.
But I need a matrix view where you can zoom and move the picture and on top of it mark things on the picture while ...
1
vote
1
answer
37
views
How to show an image from Retrofit response Java android?
I am trying to show images in recyclerView which are Arraylist responses from a database using Retrofit.
my question is that how can I set image to getter and setter class that I have made for my ...
2
votes
1
answer
80
views
Use of ColorPicker on an image in JavaFX
I have an image in the imageview. What I want to do is add color to it. Basically it's like a layer of color on the image. So I am trying to add color to a t-shirt image using the ColorPicker and I ...
-1
votes
1
answer
30
views
How do I make the image change automatically after a certain time?
With each click on one of the menus, it brings a new image, I wanted it to return after a while to the default image.
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (...
0
votes
0
answers
19
views
How to avoid reloading an image from Glide in modern MVVM/MVI with LiveData/Flow
In modern MVVM/MVI architecture, a View is notified of data changes via a state passed using LiveData/Flow observables. On a change of any attribute included in the state, rendering of the whole ...
1
vote
1
answer
38
views
How can I pass the DrawableId parameter to XML Layout?
I have an layout item.xml like this:
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<...
0
votes
0
answers
17
views
ImageVIew doesn't fill the enitre parent view when shared element transition impemented
I've a recyclerView in which there is an item which has the imageView and when i click on the image which i want to see on the whole screen, but on the contrary it is observed that the image is not ...
1
vote
1
answer
64
views
Binding child width and height to parents makes it unable to become smaller when resizing
When I bind an ImageView to it's container:
imageView.fitWidthProperty().bind(widthProperty());
imageView.fitHeightProperty().bind(heightProperty());
It functions as intended when making the ...
1
vote
1
answer
27
views
Android -Images in Drawable Folder Appear Blurry
I'm testing this in the Emulator Pixel 4, API 33.
I added some 100x100 png images to the drawable folder but they all come out blurry. I copied and pasted each one into the folder. I've tried android:...
0
votes
0
answers
13
views
why my image won't get remove when it intersects with another image
I made 2 imageviews, one which I move using arrow keys and one that moves using transition animation.I created a class and created a method that takes as parameters those 2 images and the pane which ...
0
votes
0
answers
47
views
why my image keeps appearing on the same place when I try to animate it
I want to make an image move from right to left and make the image appear on the right side of my pane randomly.The problem is that the image appears in the same place over and over again.
import ...
0
votes
0
answers
43
views
Bitmap is giving back width and height reversed
The app adjust the canvas comparing its aspect ratio with the image aspect ratio. It works fine in mobile and tablet horizontally, but when the tablet is vertical, the img parameters width and height ...
0
votes
0
answers
47
views
Capture Images and show in RecyclerView : Too much work on the main thread
I am trying to capture images in my Android App using camera and show it in a list using RecyclerView
But because the images are quite heavy in size (6-7 MB each) and my list is can contains approx 8-...
0
votes
1
answer
60
views
How to combine a RepeatListener in Android with a smooth image rotation
I have a Fragment with a ImageView (Fan) and an action button. When pressing the action button the ImageView should rotate by using the animation approach from How to make a smooth image rotation in ...