Yes, don't use padding. Use margins. And you should seriously consider doing custom drawing/layouts instead.
On Sun, May 3, 2009 at 9:34 PM, Sheepz <[email protected]> wrote: > > would you consider the following bad practice? > <?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" > > > > <FrameLayout android:id="@+id/FrameLayout01" > android:layout_height="wrap_content" > android:layout_width="fill_parent"> > <ImageView android:id="@+id/ImageView01" > android:layout_width="wrap_content" > android:layout_height="wrap_content" android:src="@drawable/icon"></ > ImageView> > <ImageView android:id="@+id/ImageView02" > android:layout_width="wrap_content" > android:layout_height="wrap_content" android:src="@drawable/icon" > android:paddingLeft="20px"></ImageView> > <ImageView android:id="@+id/ImageView03" > android:layout_width="wrap_content" > android:layout_height="wrap_content" android:src="@drawable/icon" > android:paddingLeft="40px"></ImageView> > <ImageView android:id="@+id/ImageView04" > android:layout_width="wrap_content" > android:layout_height="wrap_content" android:src="@drawable/icon" > android:paddingLeft="60px"></ImageView> > </FrameLayout> > > </LinearLayout> > > > On May 4, 12:18 am, Sheepz <[email protected]> wrote: >> Hi all, since I have updated my project (http://code.google.com/p/ >> bestcardgameever-android/) to the 1.5SDK, I need to switch the >> deprecated AbsoluteLayout with something else. >> The problem is the project is a card game that has cards showing and >> some of them need to be overlapping (take a look at this >> picture:http://bestcardgameever-android.googlecode.com/files/ >> gameplay5.png note the cards in the center) >> I could really use a tip on how to do this with a FrameLayout\etc... >> Please help, >> Sh. > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

