Hi Justin..,
Here is my code..,

==========================================================
private Integer[] gItems = {
                R.drawable.l,
            R.drawable.b2,
            R.drawable.bi2,
            R.drawable.big2,
            R.drawable.re,
            R.drawable.ne,


    };
 Gallery gallery;

 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

 gallery.setImageResource(gItems[position]);
}

===============================================
Whats wrong ? What i need to do now ? ?

Cheers,
Ganesh
On Dec 15, 11:19 am, Justin Anderson <[email protected]> wrote:
> How are you displaying the images in the gallery then?
>
> From your question and the information you provided it sounded like you had
> all of that in place already...  You need to add them via an adapter class.
> Check out the following tutorial for more 
> information:http://developer.android.com/guide/tutorials/views/hello-gallery.html
>
> ----------------------------------------------------------------------
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ----------------------------------------------------------------------
>
>
>
> On Mon, Dec 14, 2009 at 8:54 PM, Ganesh Ram <[email protected]> wrote:
> > Thanks Mr.Justin.
>
> > Sorry i dont know how to add ImageView into the Gallery.
>
> > Share me some sinpets... Plz help me ...,
>
> > ---------------------------------------------------------------------------­----------------
> > Gallery  mGallery = (Gallery) findViewById(R.id.apps_all);
>
> >           ImageView imageView = new ImageView(myc);
> >            imageView.setImageResource(imageIDs[position]);
> >            imageView.setScaleType(ImageView.ScaleType.FIT_XY);
> >            imageView.setLayoutParams(new Gallery.LayoutParams(150,
> > 120));
>
> > ---------------------------------------------------------------------------­----------------
> > How to add thos imageView into mGallery. ? ?
>
> > Cheers,
> > Ganesh
>
> > On Dec 15, 4:06 am, Justin Anderson <[email protected]> wrote:
> > > ImageView.startAnimation()
>
> > > I'm assuming the items you are putting in your Gallery view are ImageView
> > > objects of course...
>
> > > By the way, HAVE SOME PATIENCE!!!!!!  Everyone answering questions on
> > here
> > > does so on their own spare/free time.
>
> > > ----------------------------------------------------------------------
> > > There are only 10 types of people in the world...
> > > Those who know binary and those who don't.
> > > ----------------------------------------------------------------------
>
> > > On Fri, Dec 11, 2009 at 5:07 AM, Ganesh Ram <[email protected]> wrote:
> > > > Some one help me !  !  !
>
> > > > On Dec 11, 9:50 am, Justin Anderson <[email protected]> wrote:
> > > > > You are telling the gallery to do the animation.  If you want each
> > image
> > > > to
> > > > > have a different animation, then you need to put the animation on the
> > > > actual
> > > > > image itself, not the gallery...
>
> > ----------------------------------------------------------------------
> > > > > There are only 10 types of people in the world...
> > > > > Those who know binary and those who don't.
>
> > ----------------------------------------------------------------------
>
> > > > > On Thu, Dec 10, 2009 at 3:10 AM, Ganesh Ram <[email protected]>
> > wrote:
> > > > > > Hi All,
> > > > > >  I added and displayed set of images in my gallery. I made like at
> > a
> > > > > > time use can view three images.
>
> > > > > > Now I want to do different Animation for these images. I used
> > > > > > following snippet but its refreshing entire Gallery.
> > > > > > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> > > > > >                gallery.setGravity(10);
> > > > > >                gallery.setAnimationDuration(1000);
> > > > > >                gallery.setSelection(position, true);
> > > > > >                gallery.setFadingEdgeLength(100);
> > > > > >                gallery.startAnimation(mGallaryAnim);
> > > > > >                gallery.setCallbackDuringFling(false);
> > > > > > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> > > > > > Try to help me. I need to complete this soon.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Beginners" group.
> > > > > > To post to this group, send email to
> > > > [email protected]
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected]<android-beginners%2bunsubscr­[email protected]>
> > <android-beginners%2bunsubscr­[email protected]>
> > > > <android-beginners%2bunsubscr­[email protected]>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-beginners?hl=en-Hidequoted
> > > > text -
>
> > > > > - Show quoted text -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Beginners" group.
> > > > To post to this group, send email to
> > [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<android-beginners%2bunsubscr­[email protected]>
> > <android-beginners%2bunsubscr­[email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-beginners?hl=en-Hide quoted
> > text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-beginners%2bunsubscr­[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to