floating-action-button

Moving Floating Action Button up and down to avoid getting blocked by a snackbar

不打扰是莪最后的温柔 提交于 2019-11-28 17:50:20
I'm using this library to implement a floating action bar and I can't seem to find a way to move the button when a snackbar appears on screen. Is it even possible with that library? To anyone looking out for answer in future.. Coordinator Layout used as Parent Layout of Floating Action Button will handle the animation effect for you automatically. The floating action button has a default behavior that detects Snackbar views being added and animates the button above the height of the Snackbar accordingly. Floating Action Button Behavior <android.support.design.widget.CoordinatorLayout android

Hide FloatingActionButton on scroll of RecyclerView

你离开我真会死。 提交于 2019-11-28 17:47:43
I want to hide/show FloatingActionButton on scroll of RecyclerView . My XML layout : <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" > <android.support.v7.widget.RecyclerView android:id="@+id/recyclerview_eventlist" android:layout_width="match_parent" android:layout_height="match_parent" /> <android.support.design.widget.FloatingActionButton android:id="@+id/fab_createevent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" app:layout_anchor="@id

Is there a library for Floating Action Buttons (FAB) with Labels?

人走茶凉 提交于 2019-11-28 16:50:52
问题 Is there a library for creating Floating Action Buttons with labels (similar to the Evernote app)? Evernote Screenshot The popular libraries seem to be https://github.com/futuresimple/android-floating-action-button (closest to what I want... ability to expand hide "sub" actions) https://github.com/makovkastar/FloatingActionButton (Primary function is to hide/show with a scrollview, recyclerview, or listview) https://github.com/oguzbilgener/CircularFloatingActionMenu (library which has been

How to animate FloatingActionButton like in Google+ app for Android?

夙愿已清 提交于 2019-11-28 16:22:07
问题 I set FloatingActionButton to bottom of screen and I want to animate the button. Hidden when scrolling down Shown when scrolling up Like google implemented it in their Google+ app. I think CoordinatorLayout and AppBarLayout is needed but how to implement it to use it with the FloatingActionButton? 回答1: You can achieve it using the default FloatingActionButton changing its default Behavior using the app:layout_behavior attribute: You can use a layout like: <android.support.design.widget

Android L FAB Button shadow

和自甴很熟 提交于 2019-11-28 16:15:51
In the Material Design guidelines Google presented a new style of button , the FAB Button . I found instructions how to make it but I have trouble adding the shadow. How can this be achieved? Check out the "activity.java", there is probably the code you need. I made the Fab - Button like this: layout.xml <Button style="?android:attr/buttonStyleSmall" android:layout_width="56dp" android:layout_height="56dp" android:text="+" android:textSize="40sp" android:background="@drawable/ripple" android:id="@+id/fabbutton" android:layout_margin="@dimen/activity_horizontal_margin" android:elevation="3dp"

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

我怕爱的太早我们不能终老 提交于 2019-11-28 12:43:24
When I'm trying to build the application it will show the android.view.InflateException in FloatingActionButton? I really don't know what causes the error. Login.xml <?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" android:fitsSystemWindows="true" android:background="@drawable/bg_image" > <RelativeLayout android:layout_width=

Is there a native component for the Floating action button in Android Material Design?

冷暖自知 提交于 2019-11-28 10:31:13
My question revolves around the Floating action button that was introduced in Android Material Design. There are many library offering this component on GitHub as: Android-floating-action-button FloatingActionButton CircularFloatingActionMenu Fab Floating-action-button But my question is: Is there a native component with the last release of android.support.vX that was built for Floating action button ? Components such as : android.support.v7.cardview android.support.v4.widget.DrawerLayout android.support.v7.widget.RecyclerView ... Gabriele Mariotti Today (29/05/2015) it is officially avaiable

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

巧了我就是萌 提交于 2019-11-28 07:12:47
I would like use a FloatingActionButton on my application, I read this : https://guides.codepath.com/android/Floating-Action-Buttons#google-s-official-support-library but when I run the Activity I have this error : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xavier_laffargue.podcast/com.xavier_laffargue.podcast.ACT_Test}: android.view.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.CoordinatorLayout XML File <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" xmlns:android="http://schemas

FAB - square on pre Lollipop and without shadow on Lollipop

情到浓时终转凉″ 提交于 2019-11-27 20:31:53
It looks like FloatingActionButton is not working ether on Android 4.0 and Lollipop. As you can see on image below, on Android Lollipopo shadow is missing and on Android 4.1.1 it's square :/ Anyone faced this issue? Library version: compile 'com.android.support:design:22.2.0' Code: <android.support.design.widget.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/abc_ic_clear_mtrl_alpha"/> Thanks to @harism comment, simply setting app:borderWidth="0dp" resolve both issues. Note: don't forget to add xmlns:app="http://schemas

Bottom Align Floating Action Button

人盡茶涼 提交于 2019-11-27 19:15:55
I want to align to bottom right my FAB. I tried with android:gravity="bottom|right" When I try android:layout_alignParentBottom="true " FAB disappears When I try android:layout_alignBottom="@id/lista_tiendas" FAB disappears It doesn't seem complicated but I just can't accomplish it Any Ideas? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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_height="match_parent"> <ListView android:id="@+id/lista_tiendas" android:layout_width=