I have a vertical, set height (300px) LinearLayout (LL) with 3 nested LLs. 1 and 3rd are set with android:layout_height="wrap_content" and the middle one with android:layout_height="fill_parent". To my dismay, 3rd LL gets pushed out with 2nd one filling parent layout right to the bottom. How do I achieve desired effect since I want potentially resize the outside container with the middle portion expanding and contracting to accommodate the change
Android LinearLayout fill-the-middle
androidandroid-linearlayout
Related Topic
- Android – How to stop EditText from gaining focus at Activity startup in Android
- Android – the difference between “px”, “dip”, “dp” and “sp”
- Android – “Debug certificate expired” error in Eclipse Android plugins
- Android – unique Android device ID
- Android – ‘Context’ on Android
- Java – Proper use cases for Android UserManager.isUserAGoat()
Best Answer
Turned out (Thanks Mark Murphy for the answer) that all I was looking for was to set middle row to
layout_height="0px" and layout_weight="1"