Wednesday, March 30, 2011

Re: [android-developers] Well displayed in portrait but not in landscape

Use Hierarchy Viewer to examine your layout and determine where you
are going wrong:

http://developer.android.com/guide/developing/debugging/debugging-ui.html

(note that this is also available as an Eclipse perspective, Hierarchy View)

On Wed, Mar 30, 2011 at 8:22 AM, Alaeddine Ghribi
<alaeddineghribi@gmail.com> wrote:
> Hi,
> I developped a small app, it has 3 EditTexts and 2 buttons, in
> portrait all the items are well displayed, but in landscape, the right
> button(reset) doesn't take the extreme right position! here is my
> XML(in RelativeLayout):
>
> <EditText android:id="@+id/consom2" android:layout_width="fill_parent"
> android:layout_below="@id/consom1"
>      android:layout_height="wrap_content" android:textSize="18sp"
>      android:numeric="integer|decimal"
>      android:hint="@string/cons">
>   </EditText>
>
>
> <Button
>    android:text="Calculer"
>    android:id="@+id/button"
>    android:layout_below="@id/consom2"
>    android:layout_alignParentLeft="true"
>    android:layout_height="wrap_content"
>    android:layout_width="wrap_content">
> </Button>
> <Button
>    android:text="Reset"
>    android:id="@+id/button2"
>    android:layout_below="@id/consom2"
>    android:layout_alignParentRight="true"
>    android:layout_height="wrap_content"
>    android:layout_width="wrap_content" >
>  </Button>
>
> --
> 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
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment