Still showing and hiding view like this:
if(isChecked)
{
linearLayoutMap.setVisibility(View.VISIBLE);
}
else
{
linearLayoutMap.setVisibility(View.GONE);
}
but what if I have to show and hide using Slide Up and Slide Down Animation
Create below xml in anim folder
slid_down.xml :
slid_up.xml
Create Amim common util class :