tags:

views:

41

answers:

0

I would like to change the position of a view at runtime based on either mouse movements or sensor data such as the heading.

I have a Tab Group, first tab calls an Activity PeopleNearMe. In PeopleNearMe I call MyListView and set it as mPeopleListView. The layout for mPeopleListView is defined in XML.

I need to be able to change the position mPeopleListView to correspond with mouse or sensor movements. If I define mouse interactions within MyListView class then I can easily reference mPeopleListView and change it with setLayoutParams. But ... if I'm responding to sensor movements, those won't be defined within MyListView, so how do I get access to the mPeopleListView?

Thanks so much for any info you can share to point me in the right direction!

KC