This works - I was making some mistake in my code. The shadow still doesnt work
Rohit On Mar 5, 3:15 pm, Rohit <[email protected]> wrote: > Somehow the shadow on the text also doesnt show up.. > > Rohit > > On Mar 5, 3:14 pm, Rohit <[email protected]> wrote: > > > How do I reduce the spacing between the elements in a linear layout? > > I tried to set the padding to 0 as well as the vertical spacing but > > that didnt seem to help. I want the textview and the imageview to be > > flush together with no space between them. The following is my XML > > layout file but I dont acheive what I want with it. > > > <?xml version="1.0" encoding="utf-8"?> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical" > > android:padding="0px" > > android:verticalSpacing="0px" > > android:gravity="center" > > > > > > <ImageView android:id="@+id/imageid" > > android:layout_width="107px" > > android:layout_height="100px" > > android:gravity="center" > > android:padding="0px" > > android:verticalSpacing="0px" > > /> > > > <TextView android:id="@+id/textid" > > android:layout_width="107px" > > android:layout_height="25px" > > android:background="#c3c3c3" > > android:textColor="#000000" > > android:shadowColor="#ffffff" > > android:shadowRadius="3" > > android:gravity="center" > > android:padding="0px" > > android:verticalSpacing="0px" > > /> > > > </LinearLayout> > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

