Too many LinearLayouts - you only need one for all the text views (with
orientation=vertical and width=wrap_content).
And it's not necessary to declare an XML namespace on each tag (the
xmlns:android stuff), although it does no harm.
-- Kostya
17.12.2010 18:03, Nikola ?????:
On Fri, Dec 17, 2010 at 3:50 PM, Kostya Vasilyev <kmans...@gmail.com
<mailto:kmans...@gmail.com>> 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 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
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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