and when i called filterFAB.hideProgress() or filterFAB.setIndeterminate(false) on both calls the button is automatically moving to top left which is default for framelayout children. Instead it should stay on bottom right.
When i saw the layoutbounds to check whether the margin was still present or not, there are no layoutbounds at all not even for the button. then i removed hideProgress and checked again the layoutbounds kicked back in
Hai i am using a fragment in one activity and this is it's XML file
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:fab="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent">
In fragment
filterFAB = (FloatingActionButton) view.findViewById(R.id.fab_filter); filterFAB.setIndeterminate(true); filterFAB.setShowProgressBackground(false);
and when i called filterFAB.hideProgress() or filterFAB.setIndeterminate(false) on both calls the button is automatically moving to top left which is default for framelayout children. Instead it should stay on bottom right.
When i saw the layoutbounds to check whether the margin was still present or not, there are no layoutbounds at all not even for the button. then i removed hideProgress and checked again the layoutbounds kicked back in