Questions tagged [android-viewflipper]

For questions relating to the Android ViewFlipper component. It is essentially a ViewAnimator that can animate between two or more views that have been added to it (only one of these views is shown at a time).

33 questions
18
votes
1 answer

android- simple fade out and fade in animation for viewflipper

I'm new to android and I don't know a lot about android animation . I've a viewflipper and I want to animate between images inside it . This is the code : runnable = new Runnable() { public void run() { …
mohsen
  • 451
  • 2
  • 6
  • 15
5
votes
2 answers

How to solve this error when I open flipper?

Failed to start flipper-server Error: Failed to initialize ADB. Please disable Android support in settings, or configure a correct path. Error: spawn /opt/android_sdk/platform-tools/adb ENOENT
Schubertz
  • 61
  • 1
  • 3
4
votes
1 answer

Show Slideshow - Android OutOfMemoryError

I am trying to show a slideshow of images more than 50 images. Whenever I run it though, I get an OutOfMemoryError. My code is: public class SlideshowActivity extends Activity { private ViewFlipper myViewFlipper; int[] image = {…
4
votes
1 answer

CardView flip animation

I have seen examples of 'card flip animations' where the entire layout of an activity is changed using the animation, much like the developer docs here. Is there a way I can have a similar kind of animation but only on one view? Specifically, I have…
Farbod Salamat-Zadeh
  • 19,687
  • 20
  • 75
  • 125
3
votes
1 answer

ViewFlipper inside RecyclerView ViewHolder

I am using viewFlipper in RecyclerView Adapter Item but it is working in an abnormal way like if I flip a view and then scroll, the other view in the recyclerView also gets flipped. Please help me in resolving this issue.. Code For RecyclerView…
3
votes
0 answers

Android: how do I fix method invocation error on viewflipper?

I have a UI with multiple views that show sets of buttons to the user. I use a viewflipper to manage flipping back and forth between the button sets. Recently a new error message in Android Studio showed up: "Method invocation…
AJW
  • 1,578
  • 3
  • 36
  • 77
2
votes
2 answers

How can I reset the timer in a ViewFlipper back to 0

The app I'm trying to develop has a ViewFlipper and some buttons bellow corresponding to views, you click on the third button and the ViewFlipper changes views to the 3rd image, the problem is that once I click that button the timer doesn't reset to…
Bruno Oliveira
  • 171
  • 1
  • 9
2
votes
0 answers

Animate TextSwitcher, ViewFlipper or ViewSwitcher with children of different heights

I want to use a TextSwitcher (or some other switcher with TextViews inside) to animate changing Text. It should have a sliding animation to slide the old text out to the left and the new one in from the right. My problem is that when a long text…
2
votes
0 answers

Android Transparent edged Image Slider

I have been trying to re-create an image slider as shown in the image. Looked for a lot of image slider / Flipper libraries. But in the end, I can see that Each and every slider has some kind of gray overlay effect at the bottom of the slider. How…
2
votes
0 answers

VideoView in ViewFlipper can not be stretched to Fullscreen

I want to set fullscreen in VideoView which is child of ViewFlipper and added programmatically but it does not set as a screen size and it always set as its resolution. I used relative layout out though. Here is some…
Kuls
  • 2,047
  • 21
  • 39
2
votes
0 answers

How do I add a fragment to a ViewFlipper, programmatically, in Android?

I have one listview, when i click on listView Item the fragment load details of that item.I want to add that fragment to viewFlipper. when i slide that fragment i should able to see the details of next item. I would be grateful if anyone could help…
Prixy
  • 21
  • 4
1
vote
0 answers

ViewFlipper not showing any images

I have added 2 image views inside ViewFlipper, but no image is being shown up. On setting the background color of View Flipper the color is shown but no image is being projected. And this is a very basic project. Please tell me the reason. I am…
1
vote
2 answers

Struggling with onTouchListener

I have a ViewFlipper, on which I want to set a touchListener. It is inside a ScrollView, (below the ViewFlipper there are more UI elements) and I want that if the user makes a vertical movement, the scrollview acts, and when the user makes a…
Fustigador
  • 6,339
  • 12
  • 59
  • 115
1
vote
1 answer

show Image database in ViewFlipper

i have to button : first button is for save image from gallery to database , second button is for show images from database in viewFlipper but second button dont work and have error first button : public void save(View view) { if(bitmap !=…
Nima Khalili
  • 360
  • 4
  • 20
1
vote
0 answers

Android ViewFlipper animation acting weird with videoview

I got an XML layout with ViewFlipper and 2 constraint layout as it's child. 1st layout has ImageView 2nd layout has VideoView I'm using this code to change layout: ViewFlipper flip = (ViewFlipper)…
Octone
  • 11
  • 5
1
2 3