3

I have activity in which added two fragments. when i am clicking on top fragment the views from previous fragment get focus. I should have the previous fragment in backstack for some other purpose. how to clear focus from previous fragment?

danial
  • 75
  • 9

1 Answers1

3

Set clickable of your current layout to true

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true" />

Fragment over another fragment issue

Community
  • 1
  • 1
SteD
  • 13,909
  • 12
  • 65
  • 76