Is it possible to allow item to expand until it reaches other item? Something like this: I have Relative Layout with textview inside. Textview value is transfered from previous activity and sometimes it can contain many letters and expand Relative Layout to cover other items. How can I make my layout to expand until it reaches some item?

<RelativeLayout
    android:id="@+id/rview1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_marginLeft="10dip"
    android:layout_marginRight="10dip"
    android:layout_marginTop="5dp"
    android:alpha="0.9"
    android:background="@drawable/result_text_background" >
    <TextView
        android:id="@+id/finSText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:paddingLeft="20dip"
        android:paddingRight="20dip"
        android:textColor="#FAFAFA"
        android:textSize="@dimen/textSizeScore" />
</RelativeLayout>

I tried with maxHeightbut its not good solution.

Related posts

Recent Viewed