FAQ Database Discussion Community


Floating Action Button in Xamarin.Forms

android,xamarin,monodroid,xamarin.forms,floating-action-button
I had completed my App's home page in Xamarin.Forms Portable. Now i want to add a Flotation Action Button In my Android Project ! Is there any way to add FAB for Android in my existing home page, which was coded in Xamarin.Forms Portable. OR I want to create a...

Floating action button morph

android,floating-action-button
I want to make this, but I didn't find any tuts or anything how to make it. (It's called Morph on google website) Can anybody tell me how or send some reference pls? EDIT: I want to set the layout from gone to visible... Don't you know when I should...

Drop shadow for Floating Action Button

android,android-support-library,shadow,floating-action-button
I'm creating my own floating action button. For this I'm using a RippleDrawable (created by me) and a ShadowDrawable (also created by me). The problem I'm facing is that my ShadowDrawbale does not cast perfect shadow for the respective button. The code for my ShadowDrawable is as follows: public...

Android design library FAB no shadow

android,android-actionbar,android-toolbar,floating-action-button,androiddesignsupport
for some reason my FAB displays no shadow, even though I have set the elevation and the border width to 0, like it was described in many blogs. That should fix the issue. I am placing the fab above the toolbar to get the material design guideline look. Here is...

Close floating action button Android

android,floating-action-button
I used the following library https://github.com/futuresimple/android-floating-action-button and everything works fine. How do I close the menu automatically after clicking on one of the buttons on the same menu?

Floating Action Button not showing fully inside a fragment

android,android-fragments,floating-action-button,androiddesignsupport,android-coordinatorlayout
I am using FAB button along with RecyclerView in a Fragment. This Fragment is an instance of a TabViewPager. I am having a issue with the FAB button. I have placed the RecyclerView and the fab button inside a FrameLayout, where the FAB buttton is positioned bottom right. Now the...

FloatingActionButton example with Support Library

android,android-support-library,floating-action-button,android-design-library
Recently, I read these posts: Android Design Support Library Android Support Library, revision 22.2.0 FloatingActionButton But, none of them give me a detail example about creating a new FloatingActionButton. So hard to understand, I asked this question. Can anyone give me an example about it? Any help much be appreciated....

Elevation not working on android.support.design.widget.FloatingActionButton

android,material-design,floating-action-button
I've just started android development and trying the new material design. is a screenshot of my mainactivity which has a FloatingActionButton but it doesnt applying any elevation (no shadows). How can I enable shadow on this new widget (android.support.widget.FloatingActionButton). This is code from layout xml <android.support.design.widget.FloatingActionButton android:id="@+id/add_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true"...

What is the distance between 2 or more Floating Action Button?

android,floating-action-button
I have added 2 FAB on my app (like Google Maps app, see screenshot below) and i was wondering if there is a specific distance to be respected between the 2 FAB (from a Google Design Pattern, docs, bible or whatever) or whether it is the developer who decides this...

Designing Toolbar and using Floating Action Buttons

android,android-animation,material-design,android-toolbar,floating-action-button
Although there is some information on the Internet on more or less how the extended Toolbar works and how you are meant to add different Views to it, I would like to have a step-by-step guide for me and everyone else who wants to implement the extended Toolbar into their...

Using Support Design Library in Eclipse

android,eclipse,android-support-library,floating-action-button,android-design-library
I'm working on a project that unfortunately hasn't been migrated to Android Studio yet. I want to utilize the floating action button in Google's new support.design library but I can't manage to get it included in my project. I updated the support libraries in the Android SDK Manager. First I...

Android, FAB using android support design is square in API 16

android,floating-action-button
I'm using android support design library and everything looks good on API-21 but not on API-16! The FAB (Floating action button) is square! This is my layout code: <android.support.v4.widget.DrawerLayout xmlns:app="http://schemas.android.com/apk/res/com.example.recycleviewtest" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dl" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" android:background="#6fff" android:fitsSystemWindows="true" >...

Android button looks different after rotating to landscape and still after rotating back

android,shape,material-design,layer-list,floating-action-button
I created my button following this tutorial. It looks pretty good. But if I rotate my device screen to landscape, the button looks different. Do you have some idea, why this is happening? If you need some code, please let me know! Button as it should: Button as it after...

How to remove FloatingActionButton's surrounding shadow?

android,shadow,floating-action-button
I'm trying to replace the third party FloatingActionButton with the native one which is packaged in library com.android.support:design:22.2.0.The default look has a dark shadow around the image,How can I get rid of it? I know the former one provides with the method setShadow(),but I just can't find similar one from...

How to add floating action button on top of scrollview

android,user-interface,android-studio,scrollview,floating-action-button
I have a floating action button that I would like to add on top of a scrollview so that the button stays, even if you scroll. I want it on the top of the scrollview and in the bottom right corner of the screen. What combination of views do I...

How to add shadow to the FAB provided with the android support design library?

android,floating-action-button,android-design-library,appcompat-v7-r22.2
The title is pretty self explaining. The following code does not render shadow below the Floating Action Button. What can be done to render shadow? Is this feature really not supported even on API 21+? <android.support.design.widget.FloatingActionButton android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/ic_add" android:clickable="true" /> Note: Adding android:elevation does not add shadow on API...

How to change background color of floating action menu

android,floating-action-button
I am using this library for floating action button https://github.com/futuresimple/android-floating-action-button If anyone is aware about it, we know that we can change the background color of floating action menu with this line in xml : fab:fab_addButtonColorNormal="@color/floating_action_menu" Is there a way to do so programmatically?? floatingmenu.setBackgroundColor(color) doesnt work.........

Android Studio: ActionBarActivity becomes deprecated when adding a dependency?

android,dependencies,deprecated,android-actionbaractivity,floating-action-button
I'm somewhat of a newbie so do excuse me if this is really basic. Anyway, in an attempt to add a Floating Action Button (FAB) to my layout, I decided to add a dependency to a library, like this: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2...

Drag shadow is square for a round floating action button

android,floating-action-button
I am on Android Lollipop (minSdk=21), and want to implement moving a Floating Action Button around with a dragging gesture. The button is a custom subclass of ImageButton, the code is described here so I won't repeat it: Define default values for layout_width and layout_height properties for a subclass in...

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

android,material-design,floating-action-button,android-design-library
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...

Is this a bug in Android support design Library?

android,android-support-library,floating-action-button
I just started to use the new Deisgn library from Google : 'com.android.support:design:22.2.0' I use the FloatingActionButton and I have a small issue between Android below 5.0 and over 5.0. Watch the screenshot : Android 4.4 : Android 5.0 : As you can see, on Android 4.4, there is a...

Very Beginner - How to include custom libraries from Github (FloatingActionButton) for Android

android,android-studio,android-5.0-lollipop,floating-action-button
I am very new at implementing custom libraries from github.com Here is the link I tried to follow: https://github.com/makovkastar/FloatingActionButton It seems easy to implement this floating action button, but I need someone to teach me how to follow this instruction. I get stuck here: 3) Attach the FAB to AbsListView,...

Floating Action Button Oval not changing

android,android-studio,android-5.0-lollipop,floating-action-button
I'm trying to implement code for a Floating Action Button, but for some reason the oval is not replacing the current button. activity_upcoming.xml: <ImageButton android:id="@+id/add_button" android:layout_width="@dimen/diameter" android:layout_height="@dimen/diameter" android:layout_gravity="end|bottom" android:layout_alignBottom="@+id/Upcoming" android:layout_alignEnd="@+id/Upcoming" android:layout_marginEnd="@dimen/add_button_margin" android:layout_marginBottom="@dimen/add_button_margin"...

Android: material design's Floating Action Button (FAB) and shifting views

android,android-listview,material-design,floating-action-button,fab
I would like to implement two Material Design elements in Android: the Floating Action Button (FAB) "shifting views" (not sure if this is the proper term) I cannot find any Android widget to implement FABs. Which is the best recommended solution? is it to use third party libraries? With "shifting...

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

android,floating-action-button
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...