Android RelativeLayout : how to alignParentBottom when wrapped in a ScrollView?

后端 未结 5 884
情话喂你
情话喂你 2020-12-05 13:31

The problem I am having seems to be that if I have a view (e.g. myButton) inside a RelativeLayout set to alignParentBottom - (as per the code below) - and then wrap the Rela

5条回答
  •  旧时难觅i
    2020-12-05 13:37

    None of these solutions were satisfying for me, so I'll post my own solution.

    
    
    
        
    
            
    
            
    
            

    Little explanation: when there is a lot of space (f.e. in portrait) Space view will fill that space and push Button down. When there is no space (f.e. in landscape) Space view will have 0 height and Button will be directly below content.

提交回复
热议问题