I am using listview in my activity. Now i need to hide the listview for a particular period of time and then it needs to display. Its similar to our video players where seekbars while hide automatically and when the user touches it will get display na similar i need to achieve in my activity. Instead of seekbar i need to hide my listview from the screen.Simply show/hide listviews in alternative touches. Am a newbiew. So Guide me in achieving this. Thanks in advance.
Not sure what you want exactly, but to hide any Views in Android, simply set the visibility :)
listview.setVisibility(View.GONE);
or View.INVISIBLE, if you want the view still occupy the space in the screen
listview.setVisibility(View.INVISIBLE);
to make it come back
listview.setVisibility(View.VISIBLE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With