Questions tagged [android-imageview]

Displays an arbitrary image or a drawable, such as an icon or an xml defined graphical element.

Displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers) and it will take care of computing its measurement from the image so that it can be used in any layout manager. It also provides various display options such as scaling and tinting.

More information can be found in the documentation for the ImageView class.

4273 questions
1
vote
1 answer

How to set bitmap size that fill parent?

I want to creat a bit map in the size that fill parent of the app window. how can i do that? Bitmap maskImage = BitmapFactory.decodeResource(getResources(), R.drawable.img); ImageView on = (ImageView) findViewById(R.id.on); Bitmap result =…
sara sara
  • 47
  • 9
1
vote
4 answers

Empty space in RelativeLayout

I try to use RelativeLayout to make an image over another, but needless empty space appears.
1
vote
2 answers

android: representing drawable images in text for sending

In my app, I have some small png images in drawable folder which can be displayed in edittext and textviews. Right now, I'm able to display these images in edittext and textview. I have the following scenario: At User1, he can select the image and…
1
vote
3 answers

android: one click listener on many imageviews in layout

I have the following scenario: In a layout, I have imageviews aligned horizontally and vertically as shown in image. First, which layout should be used for this purpose? RelativeLayout or FrameLayout? ListView inside the layout? Also, instead of…
1
vote
1 answer

Android Overlapping Image Views and clickable

Hi, I want to create this sort of a view where there should be a center image view and others overlapping it and i want it to be clickable. How can I achieve this?
Amresh
  • 2,098
  • 16
  • 20
1
vote
0 answers

How to make an Imageview overlap the screen

I'm stacking ImageView's on eachother from bottom to top (by layout_above), but what I want to make the top one overflow/overlaps the screen. Normally this would resize/crop the imageview to make it fit in the screen, but I want to to be like in the…
user2803086
  • 153
  • 1
  • 3
  • 10
1
vote
1 answer

Animating two ImageViews in android

I have two linear layouts inside the main linear layout, and I set the two linear layouts background images. Now I want to display both images one by one. The first image should be displayed with fade in animation slowly; after completion of this,…
1
vote
1 answer

How to implement zoom, pan and drag on Viewpager in android?

How to implement zoom, pan and drag on Viewpager in android? I have kept my images inside the viewpager ,here i could not able to pan and zoom .please kindly let me know how to do Thank you
1
vote
0 answers

How to create an image chosen from gallery to bald look android?

Hi I am working for parlour app where I need to make an hair look person chosen from gallery to edit picture to bald look in imageview. How to make a picture to bald look? I searched how to do. But couldn't. Please guide me. Thanks.
Shiv
  • 129
  • 3
  • 12
1
vote
1 answer

Use the address in the database for imageview

I'm sorry for my English . I have a SQLite database of stored name of images in the drawable folder. Example : R.drawable.image1 , R.drawable.image2 , ... Is there a way that addresses stored in the database attributed to ImageViews?
Amir Gheybi
  • 35
  • 1
  • 6
1
vote
1 answer

Change image size

ImageView img = (ImageView) findViewById(R.id.imageView); RequestQueue mQueue = Volley.newRequestQueue(this); ImageLoader imageLoader = new ImageLoader(mQueue, new ImageLoader.ImageCache() { @Override public void…
J.Wang
  • 21
  • 2
1
vote
1 answer

Image captured from camera not displayed in imageview in lollipop

I am developing an Android application where the user activates the camera on button click and set that image into an ImageView. This was working flawlessly until yesterday. But after I updated my Android version to 5.0.1, the ImageView is not…
1
vote
1 answer

Android ImageView's drawable tint not working

I'm having problems with my ImageView. Btw, I'm using CircularImageView which has a property app:selector_color. This is the scenario. ImageView has a drawable (src). What I want to happen is when I click on the ImageView, I want to add tint to it.…
user1410081
1
vote
2 answers

Image background in imageView not changing by using setImageResource()

I am trying to change the background image of an ImageView for different options on Radio buttons in the calling activity. The calling activity passes the parameters in a bundle to rendering activity and I am receiving the parameters properly (I get…
8Bit
  • 63
  • 1
  • 9
1
vote
2 answers

Android Studio, setting text visibility based on int value from another activity

I'm trying to set TextView visibility in one activity based on an integer value from another activity. Ideally, I am trying to set the value of imgID as an int, and depending on the integer value, the second activity sets the visibility of 10 …