Android has two types of Views.

i. View - Widget
ii. ViewGroup - Containers

View can specify its dimension but finalized by ViewGroup.
ViewGroup specifies layout(including orientation) of its childs and
finalizes its childs dimension.


>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>     android:orientation="horizontal"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
>         <TextView
>             android:layout_width="wrap_content"
>             android:layout_height="fill_parent"
>             android:text="@string/hello"
>     />
>      <com.xyz.test.TestUi
>      android:id="@+id/testUi"
>      android:layout_width="fill_parent"
>      android:layout_height="wrap_content"
>      />
> </LinearLayout>

The above "com.xyz.test.TestUi" orientation is decided by immediate
parent LinearLayout.
So the orientation of "com.xyz.test.TestUi" is not decided by it self.

>
> Here i want to apply orientation only for my "com.xyz.test.TestUi".
>

You have to design your orientation(have different layouts) for
different configurations.

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

Reply via email to