floating-action-button

FloatingActionButton always visible

£可爱£侵袭症+ 提交于 2020-01-05 13:00:35
问题 I am getting familiar with the new support.design library and I'm facing this issue with the FloatingActionButton. I'm trying to hide it programmatically, but the button stay always visible. I have the feeling that app:layout_anchor="@id/appbar" must override the visibility of the button. JAVA: @InjectView(R.id.search_fab) FloatingActionButton search_fab; [...] search_fab.setVisibility(View.GONE); XML: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width=

FloatingActionButton always visible

梦想与她 提交于 2020-01-05 12:59:22
问题 I am getting familiar with the new support.design library and I'm facing this issue with the FloatingActionButton. I'm trying to hide it programmatically, but the button stay always visible. I have the feeling that app:layout_anchor="@id/appbar" must override the visibility of the button. JAVA: @InjectView(R.id.search_fab) FloatingActionButton search_fab; [...] search_fab.setVisibility(View.GONE); XML: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width=

Fragment layout with FAB conflict with CoordinatorLayout

陌路散爱 提交于 2020-01-03 17:24:33
问题 Im using MaterialDrawer with a MainDrawerActivity where I replace each fragment inside container FrameLayout based on selected item, but I want to add a FAB (just for this fragment) that interacts with CoordinatorLayout so it can handle cool animations. MainDrawer 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=

Floating Action Button appears over Navigation Drawer

感情迁移 提交于 2020-01-01 09:42:08
问题 So I am using https://github.com/neokree/MaterialNavigationDrawer for my navigation drawer and https://gist.github.com/Jogan/9def6110edf3247825c9 as my FAB implementation. When I open the navigation drawer, it does not cover the FAB, and the button appears on top of it. I would like to avoid hiding the button and showing it on drawer open/close as that is rather distracting. Any ideas on how to fix this? Edit: I am adding the FAB programmatically doing the following: fabButton = new

Floating Action Button appears over Navigation Drawer

最后都变了- 提交于 2020-01-01 09:42:05
问题 So I am using https://github.com/neokree/MaterialNavigationDrawer for my navigation drawer and https://gist.github.com/Jogan/9def6110edf3247825c9 as my FAB implementation. When I open the navigation drawer, it does not cover the FAB, and the button appears on top of it. I would like to avoid hiding the button and showing it on drawer open/close as that is rather distracting. Any ideas on how to fix this? Edit: I am adding the FAB programmatically doing the following: fabButton = new

how to show/hide FAB on scroll Recycler view with coordinator parent

*爱你&永不变心* 提交于 2020-01-01 03:05:23
问题 I have an activity with coordinator layout.inside activity there is a fragment with Recycler view and float button.how can I show/hide float button when Scroll Recycler view and avoid to use fab behavior?! in activity layout: CoordinatorLayout----->AppBarLayout---->Toolbar and FrameLayout and Bottom bar view in fragment layout: RelativeLayout---->Recycler view and float button I want to implement something like Google+ home page. how can I implement this scenario? Temporary I used this

How to change FloatingActionButton between Tabs?

£可爱£侵袭症+ 提交于 2019-12-31 08:14:57
问题 I'm trying to implement FloatingActionButton from Google Design Support Library into two of three tabs, and according to the Material Design Guidelines - FloatingActionButton it says: If there is a floating action button on multiple lateral screens (such as on tabs), upon entering each screen, the button should show and hide if the action contained on each is different. If the action is the same, the button should stay on screen (and translate to a new position, if necessary.) How can I make

How to enable/disable FloatingActionButton Behavior

巧了我就是萌 提交于 2019-12-30 04:28:48
问题 I am working on app in some fragment i want to hide FloatingActionButtton. When i set android:visibility="gone" . Behavior animation show me FloatingActionButtton when i swipe up and down. is there is any way i can disable/enable FloatingActionButtton behavior. Thank you advance. here is my code QuickReturnFooterBehavior.java package com.app.common; import android.animation.Animator; import android.content.Context; import android.support.design.widget.CoordinatorLayout; import android.support

Move Floating Action Button above keyboard

此生再无相见时 提交于 2019-12-29 08:42:10
问题 I have this Floating Action Button (GitHub link) and when I open a (software) keyboard the Floating Action Button hides behind the keyboard. Is there a way that I can push it above the keyboard? Edit: tab_random.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <View android:layout_width="match_parent" android:layout_height="156dp" android:background="@color/primary_color" /> <EditText

Anchor ImageView to Collapsing Toolbar

谁都会走 提交于 2019-12-29 05:00:29
问题 When a FloatingActionButton is anchored to a CollapsingToolbarLayout, it disappears when you scroll up, reappears when you scroll down after a certain point. I was wondering if you can do that with any type of view. In my app, I'm trying to anchor an ImageView to the CollapsingToolbarLayout but it won't disappear like the FloatingActionButton. Here's the XML code. <android.support.design.widget.AppBarLayout android:id="@+id/bar" android:layout_width="match_parent" android:layout_height="252dp