Most voted "imageview" questions
62 questions
Sort by count of
-
7
votes1
answer183
viewsHow to move an enlarged image with finger in Imageview?
Based in that answer to the question when zooming in, how to move the image with your finger to see the other part of the image.…
-
7
votes2
answers6930
viewsWhy doesn’t my image appear when running the app?
I have the following xml code in Android Studio: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app =…
-
5
votes1
answer425
viewsWhy does the image get distorted (doesn’t maintain the proportions) in Imageview?
I have some images inside the folder drawable and call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid);…
-
5
votes3
answers3930
viewsDifference between setImageResource and setImageDrawable
To set an image in Imageview I did as follows using the setImageDrawable: imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); While searching for Imageview I also found the…
-
5
votes1
answer176
viewsHow do you check if two Drawables are the same?
Good night ! I’m having trouble recovering the current image from my android imageView. It is a favorite image for the user(dar like), and I want that when the user click on this image, I check if…
-
3
votes1
answer411
viewsHow to zoom in to a View image?
I am looking for the implementation of a zoom on the internet but do not think. I found just a zoom that is applied across the image. I needed this default zoom that you have in most apps that…
-
3
votes3
answers5170
viewsHow do I leave a round image?
I need the image to be round as well as the contact images of Whatsapp. I have tried to do some forms, for example with the tag < Shape>, but I didn’t get the right result. How could I get…
-
3
votes1
answer1091
viewsWorking with Base64 image in Android Studio
I have an app in Android Studio and would like to use Base64 image in Imageview and Imagebutton. I already know how to convert the image (from Drawable folder) to String, but I don’t know how to…
-
3
votes1
answer3748
viewsLoad imageView using image path
I have a listView loaded with BD data on a screen, on another screen my app hits a photo and saves the path of the photo in BD, until then I could do normal, now how to put the image in the…
-
3
votes1
answer2462
viewsAdjust Image/Bitmap to Imageview or adjust Imageview to Image/Bitmap
I’m trying to create a menu screen something like this: To make this cut diagonally, I made this image to stay on top of the background: However, in Android Studio, I can not resize the image to…
-
2
votes0
answers241
viewsViewflipper Dinamico - Android
Hello, I need to create a dynamic viewFlipper with 12 Imagesview or when loading Activity I need this Flipper to upload the images for me. Below is my code: In XML <ViewFlipper…
-
2
votes1
answer496
viewsHow to find out if an Imageview has an informed photo
Hello, I want to create a condition that checks whether all the fields on the screen were informed by the user or not. If any have not been informed, I would like to present a Toast showing error.…
-
2
votes1
answer48
views -
1
votes1
answer213
viewsMethod imageView.getDrawable() launches Nullpointerexception
I wanted to take Imageview’s drawable and convert it to a bitmap. The conversion method I already have and is working well however, when I request the execution, it presents the following error:…
-
1
votes1
answer126
viewsHow to eliminate extra space formed in a Linearlayout when creating Imageview via code?
I’m using this code to create a Imageview and add it to a Linearlayout: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { LinearLayout.LayoutParams params = new…
-
1
votes1
answer187
viewsPositioning with imageView
I need to position the images in the layout, but I’m not sure how to position these images using Imageview on android. I would like the layout to look like the one in the image below, but it does…
-
1
votes0
answers153
viewsPutextra in various acitivity
So what I want to do is this. I want to create an image through the app. To create this image, the user will choose 3 images. So to choose them, he will have to go through Activity1 and choose the…
-
1
votes0
answers22
viewsImageview Problems with original size
The ImageView by default comes with the resolution that rounds 90x120, this way the loss of quality is notorious when using the Bitmap bitmap = (Bitmap)bundle.get("data"); There is another way to…
-
1
votes0
answers411
viewsHow to load image in Imageview with quality?
Hello, I’m beginner in android programming I am developing an app that loads images from the user’s gallery or camera. After selecting the image I use a Cropintent to cut the image. The problem is…
-
1
votes0
answers63
viewsAdd wordpress image in Google Maps infowindow
Hello, I am developing a platform in wordpress and sending the establishment data to an xml, containing the main data, with this xml, send the data to the google map that shows me all locations. But…
-
1
votes1
answer41
viewsHow to check an Imagepattern of a Rectangle in Javafx?
I’m trying to check in this method if my Square, which inherits from Rectangle, was filled with an Imagepattern through the getFill function(): public boolean HouseIsValid(House Square) { return…
-
1
votes0
answers39
viewssetx and setY do not work in the pane (Javafx)
I’m having a problem setting the x and y position of an Imageview in a Javafx Pane. It is a loop code and, the first time the method is called, it arrow the img object at the specific coordinates…
-
1
votes0
answers48
viewsHow to connect images via arrows on androidStudio
Good night. I have a content.xml where I have 3 imageView, I would like to know which command I can use to connect these 3 images by means of arrows as if it were a flowchart. The app starts with…
-
1
votes2
answers114
viewsImageview Visible with onClick becoming invisible again?
Talk to you guys, I have an Image that starts invisible and when clicking the button it becomes visible, but I need it to be invisible again because when clicking the button again, it has to appear…
-
0
votes1
answer284
viewsHow to center an imageView on the screen via code?
I created a imageViewvia code and would like to know how to center it on the screen
-
0
votes1
answer1029
viewsHow to Implement "zoom in" and "zoom out" for imageView on Android?
I have an Activity where I display an image in the screen size, but I needed to implement the zoom in the image, the same zoom as the Android system that has in all galleries and browsers Android.…
-
0
votes2
answers1390
viewsHow do I place a Circular image inside an Android Fragment?
I found on the net several tutorials in English with examples of methods to round up a bitmap image. However, I could not implement them within a Fragment. How to proceed in this case?
-
0
votes1
answer220
viewsRecyclerview makes imageview disappear
Simple. Recycler View makes imageView disappear after I scroll back to the top of the list. For example, in the case, the first image simply disappears. It was like that:…
-
0
votes2
answers1630
viewsLimit image size without cropping
How do I limit the size of a Imagebutton within a Linearlayout? I limited the size of Linearlayout and left the image sizes as wrap_content thinking it would fit the size of the layout but the image…
-
0
votes2
answers938
viewsHow do I keep the Imageview ratio in Android Studio?
I had a problem creating a Splashscreen. The 512x512 image imported into the drawable directory does not maintain the same ratio after running the code. The height gets larger than the width, and…
-
0
votes2
answers821
viewsError while trying to display a vector (SVG) imageView!
Good guys, in this app I intend to do a test inserting a vector image in the main Activity. I did the integration process all right, as you can see: But even having followed the entire tutorial, the…
android android-studio svg imageview android-resourcesasked 7 years, 9 months ago Boneco Sinforoso 817 -
0
votes0
answers67
viewsDynamic creation of imageview
How to create imageviews on android dynamically based on a result of a database search? For example, I have a product that will always have an image. But he might have one or two extra images. How I…
-
0
votes1
answer719
viewsHow do I open a window, like windows explorer, from a website
I’m developing a website that will work with images. The images are on the micro site. I want to take all the images (are +- 10 images) that are in a folder and put them in a grid. Then allow a zoon…
-
0
votes1
answer196
viewsHow to save images from an android Imageview to a Mysql database using a java web service Rest
I have an android application with an Imageview that receives an image from the device, and I need to save it in a mysql database through a Java web service how could do this?
-
0
votes1
answer843
viewsTransforming image into array of bytes
I have an image that is in a ImageView on Android and I need to convert the image to byte array to send to Mysql. How could I do?
-
0
votes0
answers32
viewsTransforming image into an array of bytes
ImageView imgProduto = (ImageView) findViewById(R.id.imgProduto); Bitmap bitmap = ((BitmapDrawable)imgProduto.getDrawable()).getBitmap(); ByteArrayOutputStream saida = new…
-
0
votes0
answers68
viewsOpen an image received by an online database
I recover the image from the database as follows: btm = BitmapFactory.decodeByteArray(data, 0, data.length); imgView.setImageBitmap(btm); And then I put an action to click on the image appear the…
-
0
votes0
answers204
viewsImageview turns white when loading Activity and black when receiving image from gallery
I am saving users with a default image at the time they register in the application and this image is a drawable that is saved as a String in the database: Method of the Controller class: public…
-
0
votes1
answer74
viewsWhere is my mistake?
I’m playing a little game on Android very simple, but I’m having problems with the interface. I created the xml interface, and I set the java class corresponding to it (setContentView...), until…
-
0
votes1
answer706
viewsHow to convert an array of bytes to a bitmap image?
Hello, I am trying to return to an Imageview an image stored in the database that is saved as an array of bytes in a field of type BLOB, what would be the alternatives to this?
-
0
votes1
answer188
viewsHow to compare name of two images in Android Studio
Having a imagem = (ImageView) findViewById(R.id.imageViewId); How do I know if the current image has the name x or y? I tried some ways with the equals and stuff, but it didn’t work.... if…
-
0
votes0
answers40
viewsWhy always on the sixth Imageview I put the App hangs
<ImageView android:id="@+id/lampiaoId" android:layout_width="54dp" android:layout_height="164dp" android:layout_marginStart="96dp" android:layout_marginTop="340dp"…
-
0
votes1
answer193
viewsOpen images from an external server folder on android
Hello, I have a folder with images on an external server, have to take the link of this folder and open the images that are in it(slide type) in an Activity in the case in android studio?
-
0
votes1
answer72
viewsString in findViewById
Hi, I was wondering if you could use a string in findViewById. I have an app with various imageview that when you need to call an Internet to the camera phone. So that I don’t need to put this Input…
-
0
votes1
answer151
viewsGithub image library for android that has the option to edit before loading
https://drive.google.com/file/d/1TVyRqsVtUulQABM9AtEDVv_iWmk5JY8_/view Hello Gentlemen good evening, does anyone know a library for android with this function? or how to search on google? I’m…
-
0
votes1
answer35
viewsI can’t recover an imageview on (R.drawable)
It was supposed to appear (R.drawable.image1) I don’t know what else to do if someone can help me in this situation....…
-
0
votes1
answer230
viewsHow to pass the name of Image Dynamically?
Hello, I’m learning now and I managed to make a Heads or Tails app with Success and decided to create another one based on it. This other app just click on the mainActivity button and it calls a…
-
0
votes2
answers854
viewsImageview inside Hbox in FXML file
I’m trying to insert an image into a HBox through a ImageView but I’m not getting it. Fxml code: <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import…
-
0
votes2
answers786
viewsHow to send a photo taken from the camera to an Imageview?
I need to create an Fragment that can upload images from the camera and also from the gallery to Firebase. However, when I take an image with the camera of the device, the image is not sent to the…
-
0
votes1
answer248
viewsHow to move to the function which imageView was selected and save to Firebase
I have a User Registration Activity where he must fill in some fields( name, gender, age, etc) and two Imageview where the user can place photos of him by clicking on Imageview and selecting them in…