Closed kushanshah11 closed 1 month ago
Hello @kushanshah11 @kilicpl is right. The 'Anchored' keyword guarantees that the floating button is not moved around. To change the background of the Floating Menu, you can just treat the FloatingMenu as a simple Android View and change the background drawable. Regards,
Kushanshah11 hi. Programatically you can set fab.setMovementStyle(MovementStyle.ANCHORED) for fixing the place..
For changing the default icon, you can use something like final int sdk = android.os.Build.VERSION.SDK_INT; if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) { fab_1.setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.something) ); } else { fab_1.setBackground(ContextCompat.getDrawable(context, R.drawable.something)); }
at the worst case you can import the module to your app then can change it in your module.. But it shouldnt be required I believe