Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - AutoScrolling images in Gallery

AutoScrolling images in Gallery

All your problems with Audio, Video and Images.

AutoScrolling images in Gallery

Postby Viktoriia » Thu Jun 16, 2011 10:00 am

Hi all! I'd like to do something like slideshow.
But I don't know how I can autoscroll my images in my Gallery. Any ideas?
Code: Select all
private final Integer[] mImage = { R.drawable.picture, R.drawable.picture_1 };

Gallery g = (Gallery) findViewById(R.id.Gallery01);
      g.setAdapter(new ImageAdapter(this));


And my Adapter
Code: Select all
public View getView(final int position, View convertView, ViewGroup parent) {
         view = new ImageView(mContext);
         view.setImageResource(mImage[position]);
         System.out.println(mImage[position]);
         view.setPadding(20, 20, 20, 20);
         view.setLayoutParams(new Gallery.LayoutParams(360, 190));
         view.setScaleType(ImageView.ScaleType.FIT_XY);
         view.setBackgroundResource(mGalleryItemBackground);

         return view;
      }

      public int getCount() {
         return mImage.length;
      }

      public Object getItem(int position) {
         return mImage[position];
      }

      public long getItemId(int position) {
         return position;
      }
Viktoriia
Freshman
Freshman
 
Posts: 5
Joined: Wed Jun 08, 2011 11:24 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests