I think, it's not right way.

<TextView
android:id="@+id/widget39"
android:layout_width="wrap_
content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
>
<Button
android:id="@+id/widget38"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
>
</Button>
</TextView>
 You have mention Button in a TextView.

- Anurag Singh

Hi. please find the link to attached file, i need to have this kinda
> layout.
> is it possible??
> well perhaps it is, but im not getting it how to do it.
> i want to specify the whole layout in the xml, but it gives runtime
> error
>
> here's the link to the blue print of desired layout:
>
> http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/AAAAAAAACrA/KJUl5ANBi88/desired%20layout.jpg
>
> here's my main.xml-
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>    android:orientation="vertical"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>    >
> <RelativeLayout
> android:id="@+id/widget28"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_x="17px"
> android:layout_y="10px"
> >
> <Button
> android:id="@+id/widget40"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="Button"
> android:layout_alignTop="@+id/widget39"
> android:layout_toRightOf="@+id/widget38"
> >
> </Button>
> <TextView
> android:id="@+id/widget39"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="TextView"
> android:layout_alignParentBottom="true"
> android:layout_alignParentLeft="true"
> >
> <Button
> android:id="@+id/widget38"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="Button"
> android:layout_alignParentTop="true"
> android:layout_alignParentRight="true"
> >
> </Button>
> </TextView>
> </RelativeLayout>
> <ListView
>        android:id="@+id/tweetList"
>        android:layout_width="wrap_content"
>        android:layout_height="wrap_content"
>    />
> </LinearLayout>
>
> is anything wrong??
>
> --
> 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to