Android: fragments overlapping issue

前端 未结 17 1480
闹比i
闹比i 2020-11-27 17:49

I am facing a problem of overlapping fragments when i switch between tabs and attach fragments to a tab view below is my code please help

public class Fragme         


        
17条回答
  •  孤城傲影
    2020-11-27 17:51

    I may be very late to answer this question.

    Note:

    This answer may not be related to the above question, But hope it will help for some.

    Sometimes, Fragment overlap issue occurs when we try to use the different type of fragments( i.e using support fragment's in few fragments and normal fragments in someother fragment )

    Recently i faced the same problem in Navigation drawer. By mistake, i used "import android.support.v4.app.Fragment;" in one fragment, And used "import android.app.Fragment;" in few other fragment.

    Hope this will help for somebody..

提交回复
热议问题