Scrollview inside constraint layout does not scroll to the bottom of the parent constraint

前端 未结 10 1355
予麋鹿
予麋鹿 2020-12-03 02:34

I have a form which has around 12/13 fields. I used a Scrollview inside a constraint layout. Below is the hierarchy of the XML layout. The problem is, it doesn\

10条回答
  •  隐瞒了意图╮
    2020-12-03 03:07

    This layout works in my app. The trick is to set these two attributes in ScrollView: android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent"

    The simplified layout from my app:

    
    
    
        
    
        
    
            
    
                
    
                
                ...
                Other Views in ScrollView
                ...
            
        
    
    

提交回复
热议问题