Questions tagged as 'imageview'

0
answers

Dynamic creation of imageview

How to create imageviews in android dynamically based on a result of a search in the database? For example, I have a product that will always have an image. But it may have one or two extra images. How do I create an imageview if the result of t...
asked by 28.03.2017 / 19:10
0
answers

PutExtra in various acitivity

Well, 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. Then to choose them, he will have to go through Activity1 and choose the first image. When it chooses, it writes the...
asked by 23.03.2017 / 19:28
0
answers

ImageView turns white when loading Activity and black when receiving image from gallery

I'm saving users with a default image by the time they register in the application and this image is a drawable that is saved as a String in the database: Controller class method: public static boolean cadastraUsuario(Context context, Strin...
asked by 18.11.2016 / 17:37
2
answers

Limit image size without cropping

How do I limit the size of an ImageButton within a LinearLayout ? I limited the size of LinearLayout and left the image sizes as wrap_content thinking it would fit the layout size but the image was cropped. When I do not limit t...
asked by 21.06.2016 / 14:29
1
answer

Several ImageView defined src in xml, error java.lang.OutOfMemoryError:

I have a FrameLayout that contains the list of courses with image of the respective courses, all defined in XML, but the error occurs. There are several images, around 15, with about 1280 x 1024 each. <ImageView android:layou...
asked by 13.01.2017 / 13:01
1
answer

Transform image into array of bytes

I have an image that is in ImageView on Android and I need to convert the image to byte array to send to MySQL. How could I do it?     
asked by 16.10.2017 / 02:28
1
answer

How to load the image of a Url into an ImageView

rs = statement.executeQuery(query); List<Map<String, String>> data = null; data = new ArrayList<Map<String,String>>(); while(rs.next()){ Map<String, String> datanu...
asked by 17.09.2018 / 12:48
1
answer

Where is my error?

I'm playing a game on Android pretty simple, but I'm having trouble with the interface. I created the interface in xml, and set the java class corresponding to it (setContentView ...), until then ok. But I want it to be called when the Acti...
asked by 19.10.2017 / 03:25
1
answer

ANDROID STUDIO APP ERROR CLOSING WHEN EXECUTING

Recently (and out of nowhere) has come an extremely annoying and annoying error in Android Studio, actually the IDE itself nor error points in any code, but when I run an app that has images like at least one imageView or Button com a background...
asked by 15.12.2018 / 03:12