Nested viewFlipper Layout

前端 未结 2 786
-上瘾入骨i
-上瘾入骨i 2021-01-22 01:38

I am trying to create a custom tabbed layout with a viewflipper. Therefore, I need two buttons side-by-side at the top of the screen. I have this. However, I am trying to get th

2条回答
  •  佛祖请我去吃肉
    2021-01-22 02:24

    Your LinearLayout that contains the buttons has a layout_height="fill_parent". You need to set that to wrap_content and also specify the orientation="vertical" in the parent LinearLayout. You'll also need to specify a layout_weight for the view that you want to stretch to fill.

    Because linearLayout01 LinearLayout has its layout_height set to fill_parent, android is going to make it take up the reset of the screen. The content below that will not be visible at all because it is off the screen.

    
    
    
        
        
    
    
    
        
          
              
    
        
        
    
    

提交回复
热议问题