• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Parent view : wrap_content , Child view : fill_parent -> how to determine the size

namanhams

Lurker
For example :

Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent" 
	android:layout_height="wrap_content">

	<TextView 
                android:layout_width="wrap_content"
		android:layout_height="fill_parent" />

</LinearLayout>

In this case, the LinearLayout will wrap the height of the content, but the TextView will fill the height of the LinearLayout.

Then how to determine the size ? Thanks.
 
Back
Top Bottom