Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
2 answers
Custom ImageView With a Custom Shape
I am trying to create a custom ImageView that Shows images inside a custom border and shape instead of default rectangle, and out Side of The Borders are TransParent.
my border is an SVG File, How I can do this? thanks

Milad Ge
- 160
- 1
- 9
2
votes
3 answers
android :how to fixed size of image view programatically?
I am setting the profile image of an account by selecting the image from gallery as following
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.profile_image :
Intent intent = new Intent();
…

Mukesh Y.
- 869
- 1
- 16
- 36
2
votes
4 answers
ImageView from URL Not wrapping content with custom height
I have an image loading from a url using Glide, with the image I'm getting the image height. WHen I set the height, and width to match parent, the height is too high and there is empty space on bottom and top of image. The height is in pixels
This…

franklinexpress
- 1,149
- 14
- 44
2
votes
1 answer
How to crop a bitmap from bottom part and show it imageview
From image URL am downloading image using picasso lib, How can i cutoff(crop) bottom part of image and show it in Imageview.
I used below code which makes crop at center, but now i need cutoff at bottom which is more than 150…

Sreekanth Mekala
- 31
- 3
2
votes
1 answer
Android - Good practices to avoid Memory leaks
Do you know good practices to avoid memory leaks ?
I am currently working on an app which has few memory leaks, that I struggle to fix, mainly because I don't know the habits that I need to take to be able to avoid them.
For instance, at the moment…

Guillaume agis
- 3,756
- 1
- 20
- 24
2
votes
1 answer
JavaBinder FAILED BINDER TRANSACTION
I am getting this error in logcat when i try to upload image grom gallery. when i upload image from camera directly it works fine. Below is my code
public class OfflineMerchantRegisterActivity extends AppCompatActivity {
EditText edtUsername,…

Abhilash Harsole
- 244
- 2
- 4
- 15
2
votes
1 answer
javafx-Replacing background image of a BorderPane
I have a BorderPane on a Scene .& I have a background image in that pane.
My code for that image:
BorderPane B_pane = new BorderPane();
Image image = new Image("/Client/social3.png",width,height,false,true,true);
ImageView imageView = new…

Utshaw
- 4,166
- 3
- 20
- 25
2
votes
0 answers
The best way for displaying a remote image on Android?
I'm creating a simple application for Android which should display an image which is located on remote HTTP server. Which is the best way to do this: should it write the image to some temporary file, or just load it to RAM (in this case, how to load…

Justinas
- 347
- 2
- 4
- 10
2
votes
0 answers
How to create an image from another imageview's bounds in swift
I want to create a crop feature in swift. It will display one giant image view with the image to be cropped. Then on top of it another image view with a solid boarder and transparent background which is roughly 1/3 of the giant image view.
The…

mocode9
- 229
- 3
- 16
2
votes
1 answer
Unable to load image before loading URL on WebView
I'm trying to load a .png image before my WebView loads the URL when I start my app. Here is my Java code for the same :
package course.org.mywebsite;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import…

221b
- 431
- 1
- 11
- 34
2
votes
1 answer
javafx image color change
Im creating raws of images to be selected by the user. I want the image to change its colour once the user clicks on it
FileInputStream seats_fileInputStream = new FileInputStream("seat.png");
Image seats_image = new…

MrRizk
- 111
- 5
- 14
2
votes
0 answers
ImageView on android gets repeated
I have a piece of code that changes the size of an ImageView and changes it's Resource.
When I run, I see two overlaying iterations of the ImageView. Where one will alter in size, and the other in source.
Funny thing, the one that changes size works…

Goma
- 79
- 6
2
votes
1 answer
load image to imageview using picasso
Im trying get image from my storage to imageview using picasso, but it wont to show the photo. It is ok with getting image from url, that means picasso working correct. Please tell me what Im doing wrong? Thanks.
protected void onCreate(Bundle…

Rufat
- 49
- 1
- 3
- 8
2
votes
0 answers
Setting ImageView in JavaFX based on a gif animation
I am fairly new to programming and have recently encountered a problem that I have not found a solution for online. I have created an ImageView in FXML and gave it an FXid of "gif1". I am using code from this stackoverflow post but I tried modifying…

Yousef Ahmed
- 33
- 1
- 4
2
votes
1 answer
How to Handle Click on Imageview in Custom Listview with image and Textview?
I Want to know how do we handle click on Imageview on a Custom Listview with Image and Textview. I Even made Imageview Clickable.
Here is my code for
CustomAdapter.java
public class CustomAdapter extends ArrayAdapter {
Context…

Srikanth86in
- 107
- 2
- 12