0

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 line. viewswitcher cannot be resolved to a type"

class MyAdapter extends Adapter implements ViewSwitcher.ViewFactory

I cannot figure this out, and was wondering what the problem mean-what do you think is the error for?

Jav_Rock
  • 22,059
  • 20
  • 123
  • 164
  • Have you added `import android.widget.ViewSwitcher` to the beginning of your code? Are your sure `ViewSwitcher` is written like that, caps and all, and not in lowercase? Please make sure you write both the code and the error exactly like in Eclipse / the debugger... – poplitea Oct 03 '12 at 21:11
  • Google is your friend. There's an example here: http://inphamousdevelopment.wordpress.com/2010/10/11/using-a-viewswitcher-in-your-android-xml-layouts/ – Christine Oct 03 '12 at 21:37
  • @Christine-I had a look at the link, but it only shows for two views, not multiple images... – Jay Craigs Oct 03 '12 at 22:43
  • You may want to look at this [example using ImageSwitcher](http://android.codota.com/scenarios/527f77b0da0a00e9c5809f93/android.widget.ImageSwitcher?tag=antelope) – drorw Nov 12 '13 at 16:19

1 Answers1

0

Late answer, ViewSwitcher can only have 2 children.

Sounds like you need ImageSwitcher.

Zyoo
  • 773
  • 10
  • 30