On Fri, Dec 17, 2010 at 3:50 PM, Kostya Vasilyev <[email protected]> wrote:
> Don't use TableLayout here, as its strength is "in the other dimension"
> (aligning views one below another).
>
> You can use a horizontal LinearLayout, with two children: a vertical
> LinearLayout for your text views, and an image view.
>
> Or you can do this with one RelativeLayout: position the image with
> alignParentRight, and text views with below=<one another>, alignParentLeft
> and leftOf=ImageView.
>
> -- Kostya
>
Tnx for that Kostya. I have done it but it shows only one LinearLayout of
two.
This is configuration:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
>
<LinearLayout
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="aaaaaa"
android:layout_gravity="center_vertical|center_horizontal"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="bbbbbbbbb"
android:layout_gravity="center_vertical|center_horizontal"
/>
</LinearLayout>
</LinearLayout>
Any ideas what could be wrong?
--
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer
--
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