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
1 answer

How to update GridView before ViewSwitcher animation happens?

I work on a Battleships game as my first Android application. I decided to use a ViewSwitcher that holds two GridViews. One bUserGrid is for the User field (hosting user ships), bComputerGrid is for the Computer field (showing user shots). GridView…
0
votes
1 answer

Fading arrows on imageswitcher

I'm creating an application that uses an ImageSwitcher to show some images. I want to show arrows on either side of the screen in addition to a button on the bottom whenever a user has touched the screen or switched images. Just like you'll see when…
0
votes
1 answer

Non responding app in "Recent Apps" when PopUpMenu and Edit Text Present

Context I'm working with popupwindows to allow a user to quickly rename a cardview in an activity. I do this by using a ViewSwitcher to swap the TextView (original name) for an EditText(new name). Problem When the EditText and PopUpWindow to…
0
votes
1 answer

Unable to switch views properly in ViewSwitcher

I have an array of strings in my class and a ViewSwitcher in my layout:
Akeshwar Jha
  • 4,516
  • 8
  • 52
  • 91
0
votes
1 answer

Why are "Multiple types were found that match the controller named 'ViewSwitcher'"?

I have an MVC 5 based solution, with a Client and Data project. It includes the partial _ViewSwitcher as I want to serve mobile and desktop browsers. On the home page, when I click the ViewSwitcher's Mobile view link, I get the following…
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
2 answers

How do i adjust ImageView if it falls outside of view Switcher bounds?

i have view switcher(it contains 2 views of kettle - on and off) the first image is kettle "off" , and it stays outside of actual viewSwitcher. I tried fitXY, fixStart, fitCenter - did not help! Below is the layout of viewSwitcher I already tried…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
0
votes
0 answers

Resetting ViewSwitcher in a RecyclerView

I have a RecyclerView that has fixed size and divider decoration. The views in the adapter are ViewSwitchers. I want the ViewSwitcher to go back to its original view when the ViewHolder is recycled so that it shows the correct view when the user…
0
votes
2 answers

Making a switchable Desktop and Mobile page in MVC 4

I have created an adaptive website in MVC4. I know how to switch between desktop and mobile view for entire website using viewswitcher. My problem is I want to switch a single page to desktop view when a person visits that page from mobile device.…
0
votes
1 answer

Android: Filtering GridView with ViewSwitcher

I came across a strange problem. My GridView item has a bottom bar switchable via ViewSwitcher. GridViewAdapter implemets Filterable. Both Filter and ViewSwitcher work correctly on their own. However, when I try to filter out GridView items after…
Michał
  • 108
  • 2
  • 7
0
votes
1 answer

TextSwitcher throwing "more than 2 views" error when setFactory() is called

I am working on an assignment for an Android Programming Class. I am not looking to spoon-fed code but I cannot figure out what is causing the problem. The specifics of the assignment requires me to have a ViewSwitcher that contains a ListView and…
0
votes
1 answer

SherlockFragment Pull to Refresh

Hi how can I implement chrisbanes Pull to Refresh Library using Actionbar sherlock fragment and ViewSwitcher? I'm using this code Main.java // get an instance of FragmentTransaction from your Activity FragmentManager fragmentManager =…
0
votes
1 answer

Scrolling in ViewSwitcher with two TextViews

i'm using my own ViewSwitcher. It contains two TextViews with the same Layout-Settings. Here's a part of my Layout:
Lucas
  • 113
  • 2
  • 12
0
votes
1 answer

How to use ViewSwitcher on only one row

I am trying to add an viewSwicther to a listview. What I want is that when an item is clicked for a long time, that field will be transformed to an EditText. At the moment it's always the element at the top of the list that tranforms from TextView…
0
votes
1 answer

How to implement ViewSwitcher

I have two XML files currently. I have my activity_main.xml and a second file called horizontal.xml I want to switch between the two such that when the phone is held vertically it displays activity_main and when the phone is held horizontally it…
user2593697
  • 29
  • 2
  • 6
0
votes
1 answer

Hight mode is 0 or ViewSwitcher can only be used in EXACTLY mode in realViewSwitcher in android

I got Height 0, which is printing in log cat. On MainJava file: RealViewSwitcher realViewSwitcher = (RealViewSwitcher) findViewById(R.id.horizontal_pager); …
user1391869