On Fri, Nov 19, 2010 at 12:53 AM, Mutturaj <[email protected]> wrote:
> 1) Background of the button should change to blue if user clicks on list
> child item.
> 2) Background of the button should change to white if user clicks on other
> views.
>
Track the currently selected item and reset it's color as necessary when a
new one is clicked.
// Pseudo-code
onClick(View newItem)
{
newItem.setBackColor(Blue);
if (lastItem != null)
lastItem.setBackColor(White);
lastItem = newItem;
}
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en