hi guys! seems like I'm gona ask a "noob question" :D I've some horizontal linearLayout in a vertical one:
[syntax="xml"]
<LinearLayout
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:orientation = "vertical"
android:gravity="center_horizontal"
>
<LinearLayout
android:layout_width ="wrap_content"
android:layout_height = "wrap_content"
android:orientation = "horizontal"
android:baselineAlignedChildIndex="2"
>
<TextView
android:layout_width="wrap_content"
android:layout_height =
"wrap_content"
android:textColor="#888888"
android:textSize="15sp"
android:textStyle="bold"
android:text="@string/mystring"
>
</TextView>
<View
android:layout_width="15dp"
android:layout_height="wrap_content"
>
</View>
<TextView android:id="@+id/myid"
android:layout_width="wrap_content"
android:layout_height =
"wrap_content"
android:textColor="#000000"
android:textSize="15sp"
>
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width ="wrap_content"
android:layout_height = "wrap_content"
android:orientation = "horizontal"
android:baselineAlignedChildIndex="2"
>
<TextView
android:layout_width="wrap_content"
android:layout_height =
"wrap_content"
android:textColor="#888888"
android:textSize="15sp"
android:textStyle="bold"
android:text="@string/myString2"
>
</TextView>
<View
android:layout_width="15dp"
android:layout_height="wrap_content"
>
</View>
<TextView android:id="@+id/myId2"
android:layout_width="wrap_content"
android:layout_height =
"wrap_content"
android:textColor="#000000"
android:textSize="15sp"
>
</TextView>
</LinearLayout>
</LinearLayout>
[/syntax]
I want to align my horzontal layout according to their second child.
(to get a right aligned first column for field names, a void space and
a left aligned second column for displayed values)
as you can see I tried to use the "baselineAlignedChildIndex" but I
don't know how it works...
can anybody help ?
if someone can explain how should the "baselineAlignedChildIndex"
argument be used ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

