Questions tagged [viewswitcher]

ViewSwitcher is an Android widget that switches between two views only one being visible at a time.

ViewSwitcher is a subclass of ViewAnimator, switching between only two views. The child views can be added manually or by using a ViewFactory. Animations can be set to animate both the entrance and the exit of a child view from the screen.

87 questions
1
vote
1 answer

CoordinatorLayout / RelativeLayout issue within a ViewSwitcher

This is a follow up question of this one: Coordinator Layout and Relative Layout issue I have an issue when you have a CoordinatorLayout with a RelativeLayout within a ViewSwitcher like the following example:
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
2 answers

What's the difference between changing two fragments with FragmentManager and two views with ViewSwitcher?

When to choose between using two fragments and replacing one with the other in an activity (or child fragments in another fragment) or using two views and changing them using ViewSwitcher (or ViewFlipper)? For example, while loading the data, I use…
bryant1410
  • 5,540
  • 4
  • 39
  • 40
1
vote
0 answers

ViewSwitcher very slow on first view

I have a ViewSwitcher that displays views. When the ViewSwitcher starts the initial view does not scroll. final ViewSwitcher vs = (ViewSwitcher)getView().findViewById(R.id.view_switcherz); mEventResource = new AlternateEventResource(); …
user2476398
1
vote
1 answer

Using ActionBar Inside Fragment class in android

I am trying to create Sliding tabs inside fragment . By referring tutorial from this link. I am using ViewPager it. Below is the my code :- public class A extends Fragment { private ViewPager pager; private TabsAdapter…
1
vote
1 answer

View Switcher for ServiceStack?

In MVC, there's a ViewSwitcher, and you can add _Layout, _Layout.mobile; MyView and optional MyView.mobile What's the best way to accomplish this in ServiceStack razor view? Thanks
Whoever
  • 1,295
  • 1
  • 14
  • 21
1
vote
2 answers

how to use viewswitcher with same id's in both layouts

I am using view switcher in my project. In my xml I have created 2 layouts with all same Id's. After I switch my view I can not switch to previous view because I am using same ID's in both layouts. Now how can I use one listener in java code for…
user2085965
  • 393
  • 2
  • 13
  • 33
1
vote
1 answer

Android Image Slideshow using ViewSwitcher

I'm trying to make a simple slideshow that fades out and fades in a few images without a button click. I had found a few examples to assist me, but I am having trouble getting the first image to fade into the second image. As of now, it just fades…
BossWalrus
  • 770
  • 1
  • 12
  • 29
1
vote
3 answers

How to transfer data between views?

I am just starting writing Android apps. I have done some beginner's tutorials, but I'm having trouble with the next step for which I could not find any helpful answer. I want to write an app that computes the value of a complex function which…
Markus
  • 64
  • 6
1
vote
1 answer

How to disable scrolling in ScrollView when the viewSwitcher is enabled?

In my project I am using ScrollView to display list of products and each product will have a sub product. I am using a realviewswitcher to display the sub products. Till this everything works fine . The problem is when I scroll the scrollView it…
Deepu
  • 333
  • 1
  • 4
  • 15
1
vote
0 answers

Using AsyncTask to load gallery

I am trying to use asynctask to load a fullscreen gallery menu. I have look at many codes about asynctask to load list of images but not in the form of gallery. I want to the users to view loadingscreen.xml first before viewing the main.xml. But…
1
vote
0 answers

How to initiate an action when the viewswitcher's view is changed?

I am using View Switcher to show 2 different views.I just want to determine which view the switcher is showing dynamically and want to initiate some action accordingly.This is the code: private ViewSwitcher switcher; private GestureDetector…
user1726619
  • 941
  • 2
  • 18
  • 39
1
vote
2 answers

Swipe Gesture inside ListView - Android

I am a newbie for Android. I got a tutorial on how to implement the `listView here: I implemented it and it is working fine. I need to implement a ViewSwitcher for the same. Like when I swipe the song, I need to get some options like play, add to…
1
vote
2 answers

How do you setup a ViewSwitcher like the Android ICS Dialer?

How do you setup a ViewSwitcher like the ICS Dialer has? I can setup a ViewSwitcher and make it have a animation when you swipe left or right, but I dont know how to make it so you can actually drag the view left or right!
William L.
  • 3,846
  • 9
  • 53
  • 72
1
vote
1 answer

Using relative positioning for views in a ViewSwitcher

I am running into a problem with RelativeLayout and ViewSwitcher here and maybe someone is able to help. So what I want is switching two views using a ViewSwitcher, however, the fact that a switcher is even part of the equation should be hidden from…
mxk
  • 43,056
  • 28
  • 105
  • 132