Some basic methods are unrecognised by Adapterview
-
12-11-2019 - |
题
I have a listactivity where I read/set diferent controls such as textviews, buttons or listviews in OnCreate method and also I use diferents methods of this controls inside onCreate method. Now that I know that everything works well I would like to introduce a viewpager so I can fling between diferent layers.
I have read that I have to include my code into public Object instantiateItem of my pageadapter but there are some methods that are not recognised:
- setListAdapter
- getListView
- getResources
- getString
- When I use the list, I said that onCreate method, the context for the list was this. Now which context do I have to put?
How can they be recognised?
没有正确的解决方案
不隶属于 StackOverflow