Android - ScrollView like foursquare with maps + list

前端 未结 4 2101
轻奢々
轻奢々 2021-01-31 06:52

This is the Android equivalent of this iOS question.

Trying to create a view that contains a MapView at about 20% of the screen (under an ActionBar...) and the rest of t

4条回答
  •  旧巷少年郎
    2021-01-31 07:10

    You can just declare in your xml file a ScrollView that embeds a LinearLayout, that embeds a MapView :

    
    
        
    
           
    
             
    
          ...... Your list and other stuff .......
    
            
        
    
    

    Then you can set the size for each element by specifying the layout_weight attribute

    EDIT IvanDanDo, following our discussion I found this link that may do what you want (not sure though, I didn't try it) : Android: Have an arbitrary View slide under another View like the software keyboard does

提交回复
热议问题