floating-action-button

Error inflating class android.support.design.widget.FloatingActionButton

懵懂的女人 提交于 2020-05-09 20:04:19
问题 My app crashed because Error inflating class android.support.design.widget.FloatingActionButton This is my code in the XML <android.support.design.widget.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_margin="16dp" android:src="@drawable/icon_right" app:backgroundTint="@color/green" android:onClick="previewphoto" app:layout_anchorGravity="bottom|right|end" /> and here is my gradle compile 'com

Bottom Navigation with fab

纵饮孤独 提交于 2020-03-13 04:32:25
问题 I am currently working with BottomNavigationView and FloatingActionButton . What i want to achieve is this below design: And what i have tried: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_insetEdge="bottom"

Bottom Navigation with fab

自作多情 提交于 2020-03-13 04:32:18
问题 I am currently working with BottomNavigationView and FloatingActionButton . What i want to achieve is this below design: And what i have tried: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_insetEdge="bottom"

How to remove those dark circular background from floating action button?

[亡魂溺海] 提交于 2020-02-25 04:15:08
问题 I am not able to remove those dark circle background from floating action button. By default it has a circle button with above circular shade. but some how couldnt find a way to remove that shade. xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android

How to add Floating action Button in Bottom Navigation Bar in Center with border?

若如初见. 提交于 2020-02-20 04:54:22
问题 I am trying to add a Floating Action Button in the middle of the Bottom Navigation bar. Problem is border is not appearing and also margin in Floating Action Button and icons not according to my requirement. Here is a picture of the issue. Achieved Image Here is a picture what I want Required Image Code bottomNavigationBar: SafeArea(child: _buildBottomBar(context)), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButton: CircularGradientButton( tooltip:

How to add Floating action Button in Bottom Navigation Bar in Center with border?

浪尽此生 提交于 2020-02-20 04:48:31
问题 I am trying to add a Floating Action Button in the middle of the Bottom Navigation bar. Problem is border is not appearing and also margin in Floating Action Button and icons not according to my requirement. Here is a picture of the issue. Achieved Image Here is a picture what I want Required Image Code bottomNavigationBar: SafeArea(child: _buildBottomBar(context)), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButton: CircularGradientButton( tooltip:

Snackbar slide animation causes the floating action button to jump unexpectedly

倖福魔咒の 提交于 2020-02-04 05:21:07
问题 I have a floating action button in my activity. It should move up a little bit when a snackbar appears. but when I change my snackbar animation to slide using the code: pressAgainToExitSnackBar.setAnimationMode(BaseTransientBottomBar.ANIMATION_MODE_SLIDE); The floating action button animation glitches for one frame or so. Like this: What am I doing wrong? PS: I am using this version of google material design library: implementation 'com.google.android.material:material:1.2.0-alpha03' 来源:

Why Floating action button Behind the BottomBar

橙三吉。 提交于 2020-01-30 08:51:24
问题 I want the Floating Action Button in the middle of the BottomBar and the front, not on the back, please guide me to solve this problem My layer codes are as follows... <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/content" android:layout

How to make Focus to FloatingActionButton Even if the Navigation drawer is open in Android

为君一笑 提交于 2020-01-24 01:11:06
问题 I want to make focus on FloatingActionButton Even if my Navigation Drawer is open. I know when the navigation Drawer is open then rest of the screen is unfocusable by using setScrimColor this we can reduce the focus on Navigation Drawer. But I want to make FloatingActionButton is focusable. Library is below for ActionButton https://github.com/shell-software/fab see the below screenshot for my problem. Normal Screen : Click on FloatingButton : What I want like this Focusable : activity_main

CoordinatorLayout, FAB and container layout conflict

大城市里の小女人 提交于 2020-01-23 02:05:47
问题 I have a main activity with a drawer that have a container layout where I replace each fragment with FragmentManager . I want to add a FAB to one of my child fragments that hide/show on scroll but Im not sure what Im doing wrong and get: Layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout