How to create a overlay layout upon a listview

后端 未结 2 1876
名媛妹妹
名媛妹妹 2021-02-15 16:41

I have a listview that will be filled with AsyncTask and at the bottom edge of the app I need to show a fixed overlay layout like this:

2条回答
  •  礼貌的吻别
    2021-02-15 17:17

    As Daniel has suggested, use a RelativeLayout because it allows stacking of components(same with FrameLayout and SurfaceView). The following code will give you the layout you are looking for:

    
    
    
    
    
    
    
       
    
       
    
       
    
    
    

    In the code above, the color hex values used for transparentBlack is #95000000 and white is #ffffff.

    Here is an excellent tutorial on the basics of UI design in android: Android User Interface Design: Layout Basics.

提交回复
热议问题