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?
Asked
Active
Viewed 2,110 times
3
-
1please share your code what you are doing – Fahim Mar 12 '15 at 13:32
1 Answers
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" />
-
not helping. the focus still goes to previous fragment when app is minimised and maximised. – alchemist Jul 20 '17 at 04:07