If by title you mean the actual title added using any of the methods addHeaderView(...), you can simply get the number of titles added using getHeaderViewsCount().
Alternatively, if I remember correctly, it ListViewwraps its adapter internally HeaderViewListAdapterif it contains headers and / or footers. You can use getHeadersCount()to get the same number as above.
Change: . If you want to check if a specific title has been added, you can query for it HeaderViewListAdapter. You will need some criteria to verify.
, ListView 3 , (, HeaderListViewAdapter, ListView getItemAtPosition(...))) , . "" - , , , addHeaderView(...), Object. , , , , . . .
getItem(...)/getItemAtPosition(...) , . String , Java toString(), .equals(..).
, - mHeaderViewInfos ( ArrayList<ListView.FixedViewInfo>) .