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
2 answers

Shadow effect for image in all sides

I need to create shadow effect for an image . private static Bitmap getDropShadow3(Bitmap bitmap) { if (bitmap==null) return null; int think = 6; int w = bitmap.getWidth(); int h = bitmap.getHeight(); int newW = w - (think); int newH = h -…
DKV
  • 1,767
  • 3
  • 28
  • 49
1
vote
1 answer

Get Drawable path of images

I am implementing a horizontal gallery in my Fragment Activity, but I can't get my images, therefore returning a NullPointerException: LinearLayout myGallery; @Override public void onCreate(Bundle savedInstanceState) { …
Cris
  • 2,002
  • 4
  • 30
  • 51
1
vote
1 answer

Android - Display all images from server folder using PHP in GridView

I am trying to capture image or record a video using camera and then upload to my server. On the server side, i used PHP language to read the file and moved it to a particular location. Now i want to display all these images that are stored my…
1
vote
2 answers

How do I make ImageViews appear at same place on different displays?

The blue rectangles are invisible areas(made visible for debugging) i click and something happens. on the IDE, they are at right places. But on the genymotion(same model) they are placed at a bit different positions - why? What could be the problem…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
1
vote
1 answer

Android URI from SQLite not displaying in ImageView

I have an app which takes a picture from the phone camera and stores the path as TEXT in an sqlite database. I am retrieving the string from the database and parsing it and it is not showing in the ImageView for some reason. Here is all of the…
David.Warwick
  • 620
  • 1
  • 9
  • 28
1
vote
1 answer

Using ClipDrawable to hide a part of and ImageView

I am trying to hide a part of an image so that the user does not see it. Initially I copied the Bitmap pixels on another Bitmap, without copying only the pixels that I needed and making the second bitmap the correct size at creation. That worked,…
Sebastian Bugiu
  • 113
  • 2
  • 6
1
vote
2 answers

How to create 360 degree image view with captured images in Android?

I am developing application in native android. And I want to implement Google View like 360 degree image view by capturing the images from the camera.
Zen Bhatt
  • 310
  • 5
  • 21
1
vote
0 answers

Android - Toggling width & height on ACTION_MOVE

Hey i'm a beginner in programming and stuff, and i need a little bit help from anyone here, so... i have some imageview with shrink/grow effect on ACTION_UP and ACTION_DOWN , and i want to toggle the width and height when the MotionEvent switch to…
1
vote
1 answer

Android get ImageView actual height and width dynamically

EDIT: My new question is how can I dynamically get the actual ImageView width and height if it's set to fill_parent ? I mean method without error or large memory consumption.
Lukas Anda
  • 716
  • 1
  • 9
  • 30
1
vote
0 answers

Is this conceptually how Android resizes images within an ImageView?

I tried following some ImageView and BitmapDrawable source code to gain a better understanding of how the two classes operate on BitMaps. Is this generically how the process works? I have an image which is a JPEG of size 500x500 I have ImageView A…
Daiwik Daarun
  • 3,804
  • 7
  • 33
  • 60
1
vote
2 answers

Android KenBurnEffect Issue

I have an issue related to KenBurnsEffect library. In this library they set an images from remote URL.. like this.. public static final String[] IMAGES20 = new String[] { "http://simpozia.com/pages/images/stories/windows-icon.png", …
1
vote
1 answer

Android ImageView drag and drop positioning

Here is my code public class MainActivity extends Activity { int screenWidth; int screenHeight; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
vcmkrtchyan
  • 2,536
  • 5
  • 30
  • 59
1
vote
3 answers

Android image picker to pick image from specified folder path

I'm saving my images to a folder in sdcard, now in my android app, I want to create image picker that opens this specific folder and allow picking images. Tried many SO solutions but none worked for me! Any help would be appreciated. Thanks in…
1
vote
2 answers

Move ImageView To Center Of Screen in android

i m working in an application which have 2 imageview 1st one is left and onother is in right ...when page will loaded imageview move nd it goes to center of screen.. i.e imageview-------->center<----------imageview i m using translate animation to…
1
vote
1 answer

zoom scale in android imageview

The below code is tried so far...i have two image view ,one is zooming and another one is static image view image.setOnTouchImageViewListener(new OnTouchImageViewListener() { @Override public void onMove() { …
dinesh kumar
  • 41
  • 2
  • 9
1 2 3
99
100