Thursday, June 17, 2010

[android-developers] Re: Line return when aligning to parent right

Hi all, thanks to myself... my workaround is :

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:id="@+id/input"
android:layout_height="wrap_content"
android:layout_width="fill_parent" android:layout_alignRight="@+id/
main">
<TextView android:text="€" android:id="@+id/TxtCurr"
android:layout_height="wrap_content" android:textSize="48sp"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
/>
<TextView
android:text="0" android:id="@+id/TxtAdd" android:layout_toLeftOf="@
+id/TxtCurr"
android:layout_height="wrap_content" android:textSize="48sp"
android:layout_width="wrap_content"/>

On Jun 15, 11:57 pm, thanat0s <thans...@trollprod.org> wrote:
> Hi all,
>
> I try to display a sum .. for example 1945€ , i use this layout in
> portrait in a relative layout.
>
> <TextView android:text="0€" android:id="@+id/TxtAdd"
> android:layout_height="wrap_content" android:textSize="48sp"
>   android:layout_width="wrap_content"
>     android:layout_alignParentRight="true"
>
> It's works very well.. but if my number is 19.45€ the € is below the
> number on a new line.. more interesting... 919.45€ , all is displayed
> on the same line..
>
> This append on a "Real" Nexus One, on the emulator in QVGA or HVGA
> it's works without any problems..
>
> Someone got an idea ?
>
> Bye.

--
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