I want to give a custom title above my listView. After reading some threads here I made the code as follows, but the title bar size is becoming very small, i want to make it a little bigger. Also while scrolling down the list a big gap is created between the listview top and title bar. How can I avoid this? Can anybody help me?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.citylisttitle);
}
Here’s how I did it.
First, in the manifest set your activity to have no title.
Then add your custom title bar at the top of the layout.