I'm trying to have my gallery display RelativeLayouts instead of ImageViews, using the code from: http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/view/Gallery1.html
My getView code looks like this, but I get null pointers and nothing works: public View getView(int position, View convertView, ViewGroup parent) { RelativeLayout i = (RelativeLayout) findViewById(R.id.ae); switch(position) { case 1: i = (RelativeLayout) findViewById(R.id.am); case 2: i = (RelativeLayout) findViewById(R.id.ap); } // i.setImageResource(mImageIds[position]); // i.setScaleType(ImageView.ScaleType.FIT_XY); //i.setLayoutParams(new Gallery.LayoutParams(100, 65)); return i; } --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---