Wednesday, March 30, 2011

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

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

No comments:

Post a Comment