Found the solution myself in the end. The problem was not with the LinearLayout
, but with the ScrollView
(seems weird, considering the fact that the ScrollView
was expanding, while the LinearLayout
wasn’t).
The solution was to use android:fillViewport="true"
on the ScrollView
.
More Related Contents:
- Android Screen On different phones [closed]
- What does android:layout_weight mean?
- Android list view inside a scroll view
- How to display count of notifications in app launcher icon [duplicate]
- How do I get the currently displayed fragment?
- Placing/Overlapping(z-index) a view above another view in android
- Getting View’s coordinates relative to the root layout
- Show AlertDialog in any position of the screen
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- How to change the color of a CheckBox?
- Pinch zoom for custom view
- How do I programmatically set the background color gradient on a Custom Title Bar?
- ViewPager in a NestedScrollView
- Design Layout For Multiple Screens
- Android DisplayMetrics returns incorrect screen size in pixels on ICS
- Android : Fill Spinner From Java Code Programmatically
- Android: How to track down the origin of a InflateException?
- Android – multi-line linear layout
- Error inflating class android.support.design.widget.CoordinatorLayout and ClassNotFoundException: android.support.design.R$styleable
- Why is 0dp considered a performance enhancement?
- How to set android TabLayout in the bottom of the screen?
- Android: Radio button in custom list view
- Android layouts for different screen sizes
- How to turn off CalendarView in a DatePicker?
- Text size with different resolution
- Android: Set Edit text or text view id Programmatically
- Android Studio (Dolphin | 2021.3.1) & (Electric Eel | 2022.1.1) does not show layout preview
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?
- What event is fired after all views are fully drawn?
- ERROR No package identifier when getting value for resource number