Fixed FAB on a few Android versions

This commit is contained in:
ByteHamster 2019-09-01 23:57:38 +02:00
parent 14936852d4
commit e1b37462f2
2 changed files with 3 additions and 10 deletions

View File

@ -205,10 +205,6 @@ public class EpisodesApplyActionFragment extends Fragment {
return true;
});
if (Build.VERSION.SDK_INT == 23 || Build.VERSION.SDK_INT == 24) {
ViewCompat.setElevation(view.findViewById(R.id.fabSDScrollCtr), 8);
}
showSpeedDialIfAnyChecked();
return view;

View File

@ -29,12 +29,9 @@
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:elevation="@dimen/sd_close_elevation"
android:elevation="@dimen/sd_open_elevation"
tools:ignore="UnusedAttribute" >
<!-- android:elevation:
1. Needs to match the speed dial's minimal elevation,
or the speed dial can't be clicked at all
-->
<com.leinardi.android.speeddial.SpeedDialView
android:id="@+id/fabSD"
android:layout_width="match_parent"