خرید بک لینک

Vote count: 0

if I remove a fragment after setting it's View to Visibility View.GONE/ View.INVISIBLE the removal of the fragment causes the View to flash again before removing. how can i avoid this

fragment.getView().setVisibility(View.INVISIBLE);

Afterwards:

ft.remove(fragment);
ft.commitAllowingStateLoss();

I am not using hide because I do the Animation by myself and at onAnimationEnd I do commit the remove.

Then the View of the Fragment flashes and then is removed.

asked 20 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 29 تير 1395 ساعت: 21:55

صفحه بندی