I have two EditText views whose height I wish to align. The problem is
that I cannot predict which view will have more text and hence using
android:layout_alignTop and android:layout_alignBottom will not work.
The layout I am experimenting with is below. I have already tried
`android:layout_alignTop` and `android:layoutAlignBottom` but they do
not yield satisfactory results.

The layout I am using is as follows:


    <?xml version="1.0" encoding="utf-8"?>

    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <EditText
                        android:id="@+id/text1"
                        android:layout_width="200dip"
                        android:layout_height="wrap_content"
                        android:layout_alignParentLeft="true"
                        android:padding="5dip"

                        android:text="Text 1 bvhg hbjbj kjkbkj kjnjkn hlihj 
lklkkl"
                        />

        <EditText
                        android:id="@+id/text2"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_toRightOf="@+id/text1"
                        android:padding="5dip"

                        android:text="Text 2 lasndklsa lkmsclslk klmsldmlk 
lksdl"
                        />


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

Reply via email to