Is it possible to tell a view, that it should at least wrap it's content but if the parent view leaves space to stretch, than it should fill it's parent?
Example:
What I want is, that the container linear layout wraps around it's content... and that in case of that my title text view is wider than the scroll view, it does NOT get cut! If I set the title textview to wrap_content, it does not fill it's parent if the scrollview is wider than the title...
<LinearLayout
android:id="@+id/llWeightsParent"
style="@style/group"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:clickable="true"
android:onClick="onClick"
android:orientation="vertical" >
<TextView
android:id="@+id/tvWeight"
style="@style/text_group_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="1dp"
android:text="@string/weight" />
<ScrollView
android:id="@+id/svWeights"
android:layout_width="wrap_content"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/llWeights"
style="@style/group_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>
</LinearLayout>