For example :
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.
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.