Android auto merge two listview in one screen

前端 未结 2 1398
孤街浪徒
孤街浪徒 2020-12-12 01:23

My view look like:




        
2条回答
  •  青春惊慌失措
    2020-12-12 01:49

    If you want to create Listview with Header. Then Use Section Header Listview.

    Refer this Example.

    Hope it will help you!!

    OR

    If its fix that Only Two Listview & one Header Between them

    Then

    1) Take Only one Listview.

    2) Use Custom Adapter & Custom Layout for Listview Row.

    3) Add Two Extra TextView in Custom Layout

    Listing First ListView Data

    • (Fixed TextView - Header -Put its Visibility VISIBLE)
    • (Extra 1 TextView - Header -Put its Visibility GONE )
    • (Extra 2 TextView - Header -Put its Visibility GONE )

    Listing Second ListView Data

    • (Fixed TextView - Header -Put its Visibility GONE )
    • (Extra 1 TextView - Header -Put its Visibility VISIBLE )
    • (Extra 2 TextView - Header -Put its Visibility VISIBLE )

提交回复
热议问题