Below is my test code. If you look at the left side of the text you will
see a gradient shadow over the text, but I'm not specifying any background.
Forcing the background to null had no effect.
public class GalleryTestActivity extends Activity {
ArrayAdapter<String> arrayAdapter;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Gallery gallery = (Gallery)findViewById(R.id.gallery);
arrayAdapter = new ArrayAdapter<String>(this, R.layout.gallery_item,
new String [] {"One", "Two", "Three"});
gallery.setAdapter(arrayAdapter);
}
}
<!-- MAIN LAYOUT -->
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
>
<Gallery
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:spacing="0dip"
/>
</LinearLayout>
<!-- GALLERY_ITEM LAYOUT -->
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="70sp"
/>
On Fri, Dec 12, 2008 at 11:47 AM, Xavier Mathews <[email protected]>wrote:
>
> Can you post the code or a link.
>
> On 12/12/2008, [email protected] <[email protected]> wrote:
> >
> > The gallery view creates a shadow around all gallery items. Is there
> > a way to remove this? Going through the source code, I can't even
> > find where this shadow is added.
> > >
> >
>
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> [email protected]¥[email protected]¥[email protected]
> "Fear of a name, only increases fear of the thing itself."
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---