Your xml looks ok, but I guess that the implementation of
RelativeLayout is buggy.

On Mar 29, 1:18 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> Hi,
>  I am having a tough time getting this simple layout to work. Please advice.
>
> What I need is something like this...
>  ------------------------------------------------------------------
> |  ######                                                      |
> |  ######  BIG TITLE                                     |
> |  ######                               small message |
> --------------------------------------------------------------------
> |
> |
>
> Here is how my xml file, Please let me know what's wrong.
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent">
>     <ImageView android:id="@+id/category_image"
>             android:layout_width="wrap_content"
>             android:layout_height="wrap_content"
>             android:layout_alignParentTop="true"
>             android:layout_alignParentLeft="true"
>             />
>     <TextView android:id="@+id/name"
>             android:layout_width="wrap_content"
>             android:layout_height="wrap_content"
>             android:textSize="25sp"
>             android:layout_toRight="@id/category_image"
>             android:layout_centerVertical="true"
> />
>     <TextView android:id="@+id/users"
>             android:layout_width="wrap_content"
>             android:layout_height="wrap_content"
>             android:layout_alignParentRight="true"
>             android:layout_alignParentBottom="true"/>
> </RelativeLayout>
>
> What I keep getting is the Big text move half up the top-line and the small
> text goes top right.
>
> Regards,
> Harsh
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to