mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 02:38:58 +03:00
Fix issue with fab
This commit is contained in:
parent
6fdb67b593
commit
b4ed6a8d78
3 changed files with 10 additions and 3 deletions
|
@ -48,6 +48,7 @@ import android.view.ViewGroup;
|
|||
import android.widget.AbsListView;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
@ -206,6 +207,13 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
|||
if (getResources().getBoolean(R.bool.bottom_toolbar_enabled)) {
|
||||
bottomNavigationView.setVisibility(View.VISIBLE);
|
||||
prepareBottomNavigationView();
|
||||
} else {
|
||||
View fabView = v.findViewById(R.id.fab_main);
|
||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)
|
||||
fabView.getLayoutParams();
|
||||
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, 1);
|
||||
fabView.setLayoutParams(layoutParams);
|
||||
fabView.invalidate();
|
||||
}
|
||||
|
||||
Bundle args = getArguments();
|
||||
|
|
|
@ -88,8 +88,6 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
app:fab_addButtonColorNormal="@color/primary_button_background_color"
|
||||
app:fab_addButtonColorPressed="@color/owncloud_blue"
|
||||
app:fab_addButtonPlusIconColor="@color/white"
|
||||
|
@ -97,6 +95,7 @@
|
|||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:layout_marginRight="@dimen/standard_margin"
|
||||
android:layout_marginEnd="@dimen/standard_margin"
|
||||
android:layout_above="@+id/bottom_navigation_view"
|
||||
android:visibility="gone">
|
||||
|
||||
<com.getbase.floatingactionbutton.FloatingActionButton
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
<bool name="videos_enabled">true</bool>
|
||||
|
||||
<!-- Bottom toolbar -->
|
||||
<bool name="bottom_toolbar_enabled">true</bool>
|
||||
<bool name="bottom_toolbar_enabled">false</bool>
|
||||
|
||||
<!-- Help, imprint and feedback -->
|
||||
<bool name="calendar_contacts_enabled">true</bool>
|
||||
|
|
Loading…
Reference in a new issue