GridView - setting selection to last item also loads first item

by Mark Murphy » Mon, 19 Jul 2010 22:54:36 GMT


Sponsored Links
 


setTag() is 1.0+. Indexed setTag() is 1.6+.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

--



Other Threads

1. Froyo 2.2 --- ERROR

Before, when I navigate to a video file in the browser, it would ask
me to choose how I want to stream it (Default media player, Double
Twist etc). Now after the upgrade to 2.2, the browser will simply
close and not ask me how I want to stream the file.

-- 

2. Contract between Adapter and AdapterView

Is there some place which describes the contract between Adapter and
AdapterView, or between ListView and ListViewAdapter.

I'm trying to create my own ListView Adapter. It is not clear to me
the sequence of method invocations nor who maybe calling these
methods.

There appear to be several overlapping methods.
- getItem returns a data object, but you don't know the type.
- getItemViewType returns an integer. Who determines the integer? Are
they defined somewhere? Userdefined?
- getView

getView seems to be the only one that really matters. What other code
maybe involved that would try to do something with the returned data
and returned view? How can this other code know how to assign the data
to the view if the type of neither is known?

A general explanation of the design would be helpful.

-- 

3. Determine date/time source and whether phone rooted or not?

4. HELP WANTED: Android Tutor

5. Content Provider for shared preferences. ?

6. Android Developers

7. Playback thread die when quickly video recording & playing done