Hide Fragment inside framelayout in android -


i got stuck small issue have shown fragment inside framelayout without problem when trying hide fragment, doesn't hide , remain shown in layout.

here have done :

fragment fragment = new footerclass();       fragmenttransaction ft = getsupportfragmentmanager().begintransaction(); 

to show fragment

ft.setcustomanimations(r.anim.slide_left_in, r.anim.slide_left_out).show(fragment).replace(r.id.footer_layout, fragment).commit(); 

to hide fragment

ft.setcustomanimations(r.anim.slide_left_out, r.anim.slide_left_in).hide(fragment).commit(); 

it showing not hiding me out


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -