Android: How to Add Static row in list view I have a requirement where i need to add the Static row as first row in list view
Thanks in advance for help..
Android: How to Add Static row in list view I have a requirement where i need to add the Static row as first row in list view
Thanks in advance for help..
See ListView.addHeaderView(android.View.View).
You can add static headers and footers this way.
If you don't want it to scroll along with the ListView
, then place a separate view before the ListView
. Might go like this:
<include layout="@android:layout/simple_list_item_1" android:id="@+id/header"/>