An ImageSwitcher is a built-in Android view widget to select an image from a scrolling list of thumbnails with preview.
Questions tagged [imageswitcher]
96 questions
1
vote
2 answers
Smoother animation ImageSwitcher
I'm using fade_in and fade_out animations avaible android.R.anim.fade_in(fade_out). Basically I can change duration of animation but no matter if it's 0,5 or 2 seconds animation is still not smooth. Is there any way to make a fade in/out animation…

Matwosk
- 459
- 1
- 9
- 25
1
vote
1 answer
Populating image switcher dynamically android
How can I populate the image switcher dynamically, when I have the images in the drawable folder and sub folder .. like drawable-ldpi/S_001/a001_001.jpg.
I have tried to populate one image, but the application crashed.
Here is the…

user2199343
- 1,883
- 3
- 13
- 9
1
vote
1 answer
Android: Bitmap in ImageSwitcher causes OutOfMemory-Error
I need your help. I have tried a lot of different things to find out the problem, but i have still a memory problem.
Here`s my Code:
public class AboutActivity extends Activity implements ViewSwitcher.ViewFactory {
//private WebView webview;
static…

Wilhelm Dewald
- 149
- 1
- 11
1
vote
0 answers
Smoother ImageSwitcher - How to?
I'm trying out a simple project where you just scroll between images but it's the animation is really bad for now.
When I slide to switch between images it doesnt "attach" to my finger while I swipe, instead it fades out awkwardly and the next image…

guilhermexot
- 277
- 4
- 11
1
vote
1 answer
How to fade images without over lapping or cross fading?
Working with ImageSwitcher in my app but I don't want the images to cross fade. I want to show one image then "fadeout" to black and "fadein" with the other image. But for some reason it keeps cross fading the two images. If any one could help I…

Warren0618
- 93
- 1
- 7
1
vote
1 answer
How can I add more pictures to the ImageSwitcher Timer?
I want to put a timer on the imageSwitcher class. I was able to do that for 2 pictures using the following code, but I can't add more pictures. Can anyone tell me how can I add more pictures to the ImageSwitcher Timer?
imageSwitcher.postDelayed(new…

Hassan Mujtaba
- 11
- 2
1
vote
0 answers
How do I populate a gallery and Imageswitcher quickly?
public class MainActivity extends Activity implements ViewSwitcher.ViewFactory, OnItemSelectedListener {
private Gallery gallery;
private ImageSwitcher imageSwitcher; …

Shanky
- 49
- 7
1
vote
1 answer
ImageSwitcher not animating after first 2 image switches
I am using Android's lesser known ImageSwitcher to animate image changes in an ImageView. Currently, there are 2 images (default and "ok" image) which are switched on certain events (all happening on the main thread) - the first image is faded out,…

manmal
- 3,900
- 2
- 30
- 42
0
votes
1 answer
ImageView should be full screen but has wrong height
I am working on a simple app that shows 4x3-aspect images in the lower half of the screen in portrait orientation, and filling the screen in landscape orientation. Portrait works and the 320x240 images (which are loaded over the net) are shown that…

Neil Gall
- 579
- 4
- 11
0
votes
1 answer
Convert or Parse String to Uri and show image using ImageSwitcher
I would like to ask how to convert or parse below string and display it using ImageSwitcher on Android Studio. I tried parsing it with the Uri class parse Uri method but it did not work. Below is the code.
int i=0;
public void getItemPhotos(String…

Me Compu
- 25
- 6
0
votes
0 answers
On image change magnifier's image is not changing
But When i select the other picture it did not show in magnifier box, instead it show the default picture in magnifier. how i can fix that?. I want to change the image after selecting from below and magnifier should work on that image.
and…

Sajawal Sheraz
- 47
- 6
0
votes
1 answer
I am using ImageSwitcher. When I run the file I'm getting the following error:
MainActivity.java
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import com.example.app38.databinding.ActivityMainBinding;
import android.view.ViewGroup;
import…

Pramila Thakur
- 3
- 1
0
votes
2 answers
How to Pass Class to ImageSwitcher in Android?
I am using an ImageSwitcher to display a list of pictures. When the user selects an item from a Listview in A.class, the ImageSwitcher is called and the user views the pictures. If item 1 is clicked on in the list, then a certain set of drawables…

benbeel
- 1,532
- 4
- 24
- 38
0
votes
1 answer
SetText in TextSwitcher using BaseAdapter
I have a layout with an ImageSwitcher, a thumnail gallery, and a TextSwitcher. I would like the TextSwitcher to update text based on which thumbnail is selected. I have tried using a baseadapter to update the TextSwitcher in a similar manner to how…

benbeel
- 1,532
- 4
- 24
- 38
0
votes
1 answer
How to make ImageSwitcher fitxy like ImageView?
I want to add multiple photos so I used ImageSwitcher.
But I want the image to Fit the layout width and height, I tried fitxy like ImageView but it didn't work is there any way to do it?
android:scaleType="fitXY"

Dark Night
- 77
- 8