Questions tagged as 'imageview'

2
answers

Error while trying to display a vector imageView (SVG)!

Good luck, in this app I intend to test by inserting a vector image into the main activity. I made the entire integration process, as you can see: ButeventhoughIhavefollowedthewholetutorial,thefollowingerrorappears,soIcannotevenruntheapp...
asked by 05.02.2017 / 00:51
2
answers

How to put an imageView in Circular format inside an Android fragment?

I found several English tutorials on the net with examples of methods for rounding a bitmap image. But I could not implement them within a fragment. How to proceed in this case?     
asked by 27.06.2016 / 21:34
1
answer

RecyclerView makes imageview disappear [closed]

Simple. The Recycler View causes the imageView to disappear after I scroll to the bottom of the list and go back to the top. For example, in the case, the first image simply disappears. It was like this: link After going to the bottom of th...
asked by 18.10.2016 / 20:59
1
answer

How to center an imageview on screen via code? [closed]

I created a imageView via code and would like to know how to center it on the screen     
asked by 03.03.2016 / 13:07
1
answer

How do I open a window, type windows explorer, from a website

I'm developing a website that will work with images. The pictures are in the local micro. I want to get all the images (they are + - 10 images) that are in a folder and put them in a grid. Then to allow a zoon to be given. I'm thinking that thro...
asked by 27.09.2017 / 18:43
2
answers

ImageView inside HBox in FXML file

I'm trying to insert an image inside a HBox through a ImageView but I'm not getting it. fxml code: <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import java.util.*?> <?import javafx.scen...
asked by 17.07.2017 / 03:43
2
answers

How do I maintain the ImageView aspect ratio in Android Studio?

I had a problem creating a SplashScreen. The image, 512x512, imported into the drawable directory does not maintain the same ratio after the code is executed. The height is larger than the width, and adjusting manually works on one device, but o...
asked by 24.10.2016 / 04:56
1
answer

String in findViewById

Hello, I was wondering if you can use a string in findViewById. I have an app with several imageview that when calling a call to the camera's camera. So that I do not need to put this intent and its startActivityforResult for each imageview, I t...
asked by 04.07.2018 / 21:16
1
answer

How to compare two image names 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 forms, with the equals and such, but it did not work .... if (imagem.equals("nome")){...     
asked by 07.02.2018 / 00:23
1
answer

Positioning an Image View by the mobile accelerometer

I want to create a game using android studio where my image view is positioned according to the movement I make in the mobile. For example: When you start the application, the image appears in the center of the phone, and when you move the de...
asked by 18.01.2018 / 17:19