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

Creating a Quiz wizard on Android

I'm new to Android and I need some help on how to create a Quiz layout for my app. I currently have a Quiz object with a list of Questions. Each question has a type which can be: Single Line, Single Choice, Multiple Choice, YesNo, TrueFalse. I've…
user1774914
0
votes
1 answer

Google maps v2 mapFragment inside a viewFlipper

I'm trying to create a mapFragment inside a view flipper. I have tried several approaches to it and cannot get it to work. so far I have tried: Declaring the fragment in the right part of the view flipper and accessing it there. The problem with…
0
votes
1 answer

Android: too many characters in an EditText move my views (TableLayout with ViewSwitchers)

I have a TableLayout to show some data. Each row has two columns: the first one has the field name and the second one has the field value. If any of the fields is clicked I show an EditText. I do it using a ViewSwitcher. When the TextView/EditText…
PX Developer
  • 8,065
  • 7
  • 42
  • 66
0
votes
1 answer

create an edit mode class with view switcher in android

I'm trying to create a page with an edit mode, what i mean by this, is that you can click on a button and all textview transforms into edittext. So i created a custom view for this with view switcher : custom view : public class EditabeText extends…
Tsunaze
  • 3,204
  • 7
  • 44
  • 81
0
votes
1 answer

Android - onTouchListener ClassCastException

I would like to use viewSwitcher to switch between two layouts. It works with a button, but I would like to switch with touching the screen. I've found an onTouchListener example and i tried to implemet some kind of similar, but I did not manage…
0
votes
1 answer

android viewswitcher with multiple views

I have a specific question in android development as I am a relative noob. Currently I am trying to setup a slideshow of various images, and this is the class I am trying to get to work, but eclipse tells me an error that "multiple markers at this…
0
votes
1 answer

using ViewSwitcher inside a fragment to change views

I have the following Fragment, IdentificationFragment I want to have this fragment load an initial screen, then when I press a button, switch views. (Identification face, identification rfid, and identification voice) eventually. But I am having…
Ryan
  • 433
  • 1
  • 11
  • 29
0
votes
1 answer

How onFling works in viewSwitcher

I have 2 layouts inside a viewSwitcher, I need to change when I swipe that. package slide.trys.one; import android.app.Activity; import android.os.Bundle; import android.view.GestureDetector; import…
praveen kumar
  • 828
  • 4
  • 14
  • 22
0
votes
1 answer

android ViewSwitcher screen orientation change

I have a ViewSwitcher in a FragmentActivity with in 2 layout files, one for each orientation. The ViewSwitcher is controlled by a radio group. When I rotate the screen, everything behaves as I'd expect, the correct layout file is used to render…
Ben
  • 16,124
  • 22
  • 77
  • 122
0
votes
1 answer

switching to other view breaks app xcode

I'm working on an app, but when I switch from my first view to my second view (game level). The game breaks with: @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } and with the alert…
NielsKuil
  • 106
  • 1
  • 1
  • 6
0
votes
1 answer

Android RealViewSwitcher : How to start on second page?

i'm using RealViewSwitcher I got from this site. It works perfectly on my code, but I don't have any idea how to set the initial current screen to second or third screen. the method setCurrentScreen(int) doesn't affect anything and if I change the…
hrsetyono
  • 4,474
  • 13
  • 46
  • 80
0
votes
1 answer

Strange issues with view switcher after object animator animations

I have two LinearLayout views that contain a number of edit texts and checkboxes for entering user information (name, email address etc). When a validation fails on one of these fields a gone textview is displayed showing the validation error. I…
Barry Irvine
  • 13,858
  • 3
  • 25
  • 36
1 2 3 4 5
6