Thursday, December 9, 2010

[android-developers] Re: Child View events in adapter for gallery

Hi Treking,
Thank you for your reply
case 1:when I added click listeners for each image in the adapter then
the gallery app stopped scrolling, so I chosen another alternative
case 2:in which I used HorizontalScrollView which consists in
LinearLayout as child aging this LinearLayout contains a lot number of
LinearLayouts again each of these child LinearLayouts contains two
ImageViews as child for each ImageView I added OnClickListeners...It
is good if the images which are static, but Im downloading the Images
from my HTTP server.. it takes time to load the images and it some
times throws the unknown host exception(in OS 2.2, but works better
in 2.1) even my network does not have any problems..Im not sure where
it is wrong...
I have used the asynchronous image loading for downloading the
images..still Im searching alternatives to improve the scrolling and
downloading the images....
My goals are:
1.designing layout as two rows and each row contains images which are
downloaded from the internet
which should have smooth horizontally scrolling
2.each ImageView should handle the click event seprately
3.Need to down load the images asynchronously
Thank You

On Dec 9, 4:32 am, TreKing <treking...@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 4:18 AM, sunrises <surya....@gmail.com> wrote:
> >  I need to handle the user events separately for each ImageView..
>
> Then add click handlers separately to each ImageView.
>
> -------------------------------------------------------------------------------------------------
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate