Serdel,
Please note that you set B1 to be centered_vertical and have top_margin of 291dp. Which Acer phone you tested this on and the result was not the same? Do you need the space between B1 and B2, B3? Daniel On Tue, Nov 30, 2010 at 1:53 PM, Serdel <[email protected]> wrote: > Hello, > > I could find anything similar so I decided to open a new thread. > However if there already is a similar answer please post the link. > > I need to place my buttons in a little unconventional way shown here > (dkw I could post the message with an imageshack link so an ASCI > 'picture'): > > ___________________ > | | > | | > | | > | | > | | > | | > |__________________| > |_______B1_________| > | | > |________ ________ | > |___B2___|_|___ B3__ | > > In fact I need it working in a second screen without B2. > > So far my code is the following: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout > android:id="@+id/layout1" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > xmlns:android="http://schemas.android.com/apk/res/android" > android:background="@drawable/id_app2" android:orientation="vertical" > android:gravity="fill"> > > <Button android:id="@+id/button1" > android:layout_width="fill_parent" > android:layout_gravity="center_vertical" > android:layout_marginTop="291dp" > android:layout_height="40dp"> > </Button> > > <Button android:id="@+id/button3" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:height="30dp" > android:width="160dp" > android:layout_gravity="bottom|right" > android:layout_marginTop="70dp"> > </Button> > </LinearLayout> > > (for simplicity I have removed the B2 from the code) An it worked on > my Samsung Galaxy. However I tried the same app on my friends acer > phone and the buttons were higher that should be. This is a little bit > strange since everything on other screens works fine (as you can see I > use dp not px) - I only have problem with this one. How to place them > so they would be the same at every device? > > PS: For clarity B1 is a below the center of the screen. > > -- > 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 -- Daniel Drozdzewski -- 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

