Questions tagged as 'imageview'

1
answer

Fit Image / Bitmap to ImageView or adjust ImageView to Image / Bitmap

I'm trying to create a menu screen something like this: Tomakethiscutdiagonally,Imadethisimagetostayontopofthebackground: However,inAndroidStudio,Icannotscaletheimagetofilltherequiredspaceonthescreen,I'musingConstraintLayoutandtryingtoenlarg...
asked by 29.10.2017 / 01:35
0
answers

Dynamic ViewFlipper - Android

Hello, I need to create a dynamic viewFlipper with 12 ImagesView ie when loading the activity I need this Flipper to load the images for me. Here is my code: No XML <ViewFlipper android:id="@+id/rflipper" android:layout_width...
asked by 12.05.2016 / 04:35
1
answer

imageView.getDrawable () method throws NullPointerException

I wanted to get the drawable from ImageView and convert it to a bitmap. The conversion method I already have and is working fine, but when I request execution, it has the following error: Error Displayed: WhenItakethedirectimagefromtheDra...
asked by 03.03.2016 / 18:54
1
answer

How to eliminate extra space formed in a LinearLayout when creating ImageView via code?

I'm using this code to create an ImageView and add it to a LinearLayout : public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.Layo...
asked by 24.03.2016 / 16:59
1
answer

Positioning 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 will not stay. All are in the same line and some do no...
asked by 24.10.2016 / 19:54
0
answers

setX 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 looping code, and the first time the method is called, it points to the img object in the specific coordinates (last two lines), but from the second time...
asked by 17.09.2018 / 15:38
0
answers

ImageView Problems with original size

The ImageView by default comes with the resolution that runs 90x120 , so loss of quality is notorious when using Bitmap bitmap = (Bitmap)bundle.get("data"); Is there another way to get the image without being per file and b...
asked by 03.05.2018 / 15:04
1
answer

How 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 via the getFill () function: public boolean HouseIsValid(House Square) { return (Square.getFill().equals(green) || Square.get...
asked by 17.12.2017 / 13:58
0
answers

Add wordpress image in Google maps infowindow

Hello, I'm developing a platform in wordpress and sending the establishment data to an xml, containing the main data, with this xml, I send the data to google map which shows me all the locations. But together I wanted to send an image, I fou...
asked by 02.09.2017 / 20:05
0
answers

How to upload image in ImageView with quality?

Hello, I'm a beginner in android programming I'm developing an application that loads images from the user or camera gallery. After selecting the image I use a CropIntent to crop the image. The problem is that I can not scale the image to fit in...
asked by 13.06.2017 / 19:40