floating-action-button

How can I programmatically close a FAB button list in Ionic 3? [closed]

余生长醉 提交于 2019-12-12 06:59:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . How can I programmatically close a FAB Button list in IONIC 3? 回答1: 1) In HTML <ion-fab top right #fab> <ion-fab-list side="bottom"> <button ion-fab (click)="Close($event, fab)"> <ion-icon name="trash"></ion-icon> </button> </ion-fab-list> </ion-fab> 2) In .TS import { FabContainer } from 'ionic

How to change background color of floating action menu

白昼怎懂夜的黑 提交于 2019-12-12 04:48:38
问题 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...... 回答1: It looks like FloatingActionsMenu has no getter/setter for this. To get this feature you can

Floating Action Button no shadow showing [duplicate]

蹲街弑〆低调 提交于 2019-12-12 04:06:38
问题 This question already has answers here : How to add shadow to the FAB provided with the android support design library? (6 answers) Closed 2 years ago . I am trying to get a shadow under my Floating action button but its not showing. <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="20dp" android:background="@color/colorAccent" android

Place a FAB in a Fragment

不问归期 提交于 2019-12-12 01:37:21
问题 Good afternoon, I am trying to put a FAB at the bottom|end of a fragment, but I do not know where I can place it. Here is the Fragment's xml code : <android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/swipe_container" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas

Gone FAB becames visible for a while

老子叫甜甜 提交于 2019-12-11 12:34:09
问题 I have FAB from Design Support Library in my 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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android

FAB does not animate - test code and screenshot attached

懵懂的女人 提交于 2019-12-11 12:13:08
问题 I have prepared a simple test project at GitHub for my question: I am trying to show/hide a FloatingActionButton (aka FAB) every 5 seconds by the following code in MainActivity.java: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mFab = (FloatingActionButton) findViewById(R.id.fab); mInAnimation = AnimationUtils.makeInAnimation(this, false); mInAnimation.setAnimationListener(new Animation

Anchor an floating button on a cardview

半城伤御伤魂 提交于 2019-12-11 08:07:25
问题 I try to anchor an floating button on a cardview without success. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view" android:layout_width="match

Android FAB setBackgroundTintList with ColorStateList not working

ⅰ亾dé卋堺 提交于 2019-12-11 05:55:42
问题 I want to change the colour of the NFC scanning FAB when NFC is not enabled. I've managed to successfully change the colour when the app launches, but if the user taps the FAB and enables NFC, the colour isn't changed to the primary colour. The logs say it does, but the change doesn't happen. My minSdkVersion = 15 XML: <android.support.design.widget.FloatingActionButton android:id="@+id/fab_scan_nfc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout

React Native - Native Base FAB (Floating Action Button): Clicking the FAB automatically calls sub-buttons 'onpress'

强颜欢笑 提交于 2019-12-11 05:47:45
问题 I am currently trying to implement the floating action button (FAB) from the native-base framework. I simply copied the code, and added a single onPress method to one of the sub-buttoms (Facebook-Logo in this case). However, this onPress is triggered when I click the FAB button, instead of the facebook-button which should appear AFTER clicking the FAB button. In short: desired behvaior: 1. click FAB button 2. due to number 1, let facebook button appear 3. click facebook button to trigger

Floating Action Button in android eclipse which on clicking will navigate to another activity

試著忘記壹切 提交于 2019-12-11 04:36:36
问题 I need to implement a floating action button in android eclipse which on clicking will navigate to another activity . I don't want it in Android Studio. 回答1: You can use official android design library to create FAB . http://developer.android.com/tools/support-library/features.html#design <android.support.design.widget.CoordinatorLayout android:id="@+id/coordinatorLayout" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools