[android-developers] Layout problem with TextView on RelativeLayout
Hi all,
I have a question related to layout of a textView on top of a
RelativeLayout. I have the background layout set to a 9-patch image.
When I do set it to a 9 patch image, the text in the textviews is
drawn vertically. If all I do is change the background image from a 9-
patch to a regular image, then the text is drawn horizontally as
expected...
This snippet is within a larger portion, but everything else in the
layout is working, so I suspect it's something here.
Any help would be greatly appreciated, as I've been fighting this for
a couple hours now :( Thank you
Snippet of layout
<RelativeLayout android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/relativeLayout1"
android:background="@drawable/messagebox">
<TextView android:textColor="@color/my_black"
android:layout_width="match_parent" android:layout_marginTop="15dip"
android:id="@+id/MyVideoMsgFromTextView"
android:layout_marginLeft="25dip" android:layout_height="20dip"
android:text="TextView" android:layout_marginRight="25dip"></TextView>
<TextView android:layout_width="match_parent"
android:layout_marginTop="15dip" android:id="@+id/MyVideoMsgTextView"
android:layout_marginLeft="25dip" android:layout_height="wrap_content"
android:text="TextView" android:layout_marginRight="25dip"
android:layout_below="@+id/MyVideoMsgFromTextView"></TextView>
</RelativeLayout>
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home