Questions tagged [imageswitcher]

An ImageSwitcher is a built-in Android view widget to select an image from a scrolling list of thumbnails with preview.

96 questions
2
votes
1 answer

How to control duration of transition in ImageSwitcher Android

I have an ImageSwitcher and I'm using it to create a slideshow. I can control the duration that an image is displayed for but how do I control the duration of the transition between the images. I want to increase that duration because the…
Namratha
  • 16,630
  • 27
  • 90
  • 125
1
vote
3 answers

Android ImageSwitcher: Out Of Memory Error when setImageURI

I seem to have a memory leak and I'm not sure how to fix. I've read all of the ImageSwitcher tutorials and examples on android.com, but those all seem to deal with drawables that are already in the drawables folder. My code allows the user to take…
Shawn
  • 2,406
  • 1
  • 26
  • 31
1
vote
1 answer

How to create a circular gallery view / image switcher / image views...?

I am having a requirement like want to have a cyclic gallery view shown as in the image. Thanks in advance...!
Noby
  • 6,562
  • 9
  • 40
  • 63
1
vote
1 answer

Android: How can I resize an image to be automatically fitted with the View

I have png floor map images. I am using the below code to set the default image size to fit with the view. imageView is the view inside my ImageSwitcher: imageView.setImageMatrix(createDefaultMatrix()); private Matrix createDefaultMatrix() { …
eros
  • 4,946
  • 18
  • 53
  • 78
1
vote
1 answer

ImageSwitcher with GestureDetector "fling" / "swipe"

I'm trying to implement a ImageSwitcher to move to next image on fling. It works well when clicking on the "Next" button, but I can't get it to work with the fling GestureDetector. Basically I've implemented the same code in onFling as in…
user885483
  • 107
  • 1
  • 2
  • 10
1
vote
2 answers

Android ImageSwitcher with vertical scroll

I try to change the art of scrolling from a ImageSwitcher. The normal ImageSwitcher scroll from left to right or right to left. But I want to scroll from top to bottom or bottom to top. I din´t find a solution for this problem. Can anybody help me.
Happo
  • 1,375
  • 3
  • 16
  • 34
1
vote
0 answers

Is it possible to control the duration of the fade, or speed of motion in an Animation?

I'm using ImageSwitcher and it works as described but the only two animations I see are fadeins/outs and slide ins from left and out to right. I'm curious where (or if it's possible) I can set the animations to go to and come from different…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
1
vote
0 answers

Unresolved reference: imageSwitcher

I'm trying to create an image switcher for a battery animation. using kotlin support is there anything I'm missing? import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import…
IKesh Pack
  • 11
  • 1
1
vote
1 answer

Button Click Handling inside the ExpandableListView Child

A problem that I am facing which is, When I am changing the ImageView Resource inside the ExpandableListView child. I am setting different Child for Different parent and then I am handling the button click inside one of the parent-child as (Here I…
singh.indolia
  • 1,292
  • 13
  • 26
1
vote
4 answers

Android ImageSwitcher - OutOfMemory when switching images (very small)

I got some OutOfMemory crashes when switching image in ImageSwitcher, it's very rare but it happens sometimes (never to me, otherway I would be able to debug it haha). I only have 5 images (PNG) and each of them has something between 10-60kb, so to…
qkx
  • 2,383
  • 5
  • 28
  • 50
1
vote
1 answer

Image Switch on Responsive HTML Email

I'm trying to work on getting my header image to switch/replace seamlessly depending on which device it is viewed on. Previously I've used a code to resize using and max-width, min-width, etc... I'd like this to swap between 2 images depending on…
jroebas
  • 11
  • 1
1
vote
0 answers

ViewSwitcher prelaoding

I'm currently working on a slideshow-app which displays multiple images with animation in a own implementation of ImageSwitcher. Before the ImageSwitcher gets displayed, I preload (cache) the images with Picasso with fetch(). The following method…
PatrickMA
  • 887
  • 9
  • 23
1
vote
3 answers

android development if statement with images

i am trying to create a if statement which checks to see the "ratings" of a restaurant by "-1, 0, 1, 2, 3, 4 and 5". I need to then replace the rating number with a image. I have attempted to do this already but the app keeps crashing, app works…
abdul
  • 13
  • 6
1
vote
3 answers

ImageSwitcher load images from url

I'm trying to show images from a URL in a ImageSwitcher. I've tried with: myImageSwitcher.setImageURI(Uri.parse("http://miurl.com/images/foto01.jpg")); but it said me this "error": I/System.out﹕ resolveUri failed on bad bitmap uri:…
lokoxumusu
  • 61
  • 1
  • 10
1
vote
1 answer

slideshow like Apple's App Store

I want to create a slideshow in my android app that look like Apple's App Store one. functionally that I need is to change image automatically with an interval. also user can change image with swipe left or right. and there are preview for next and…
Mohamad MohamadPoor
  • 1,350
  • 2
  • 14
  • 35