floating-action-button

Fab in Lollipop shows strange shadow on long press

自古美人都是妖i 提交于 2020-01-17 08:21:47
问题 I am using the FloatingActionButton in a CoordinatorLayout: <android.support.design.widget.FloatingActionButton android:id="@+id/fab_add" android:layout_width="wrap_content" android:layout_height="wrap_content" android:tint="@color/white" app:fabSize="normal" app:layout_anchor="@+id/view_pager_imageformat_carousel" app:layout_anchorGravity="bottom|end" app:srcCompat="@drawable/ic_playlist_add_black_24dp" app:useCompatPadding="true" /> and it works fine with most Android Apis, but in Android 5

Android -FAB Behaviour with half list

百般思念 提交于 2020-01-17 06:09:53
问题 I have the FAB working when recyclerview has enough items to scroll, but i need to handle the case when recyclerview does not scroll (the total of items do not cover the screen). At the moment this is how I handle the scroll: public class FABBehavior extends FloatingActionButton.Behavior { public FABBehavior() { super(); } public FABBehavior(final Context context, final AttributeSet attrs) { super(context, attrs); } @Override public void onNestedScroll(final CoordinatorLayout

Android BottomSheet with FloatButton

烈酒焚心 提交于 2020-01-16 11:16:58
问题 How to make this interaction Bottom sheet and FloatButton like in Google Map? The first screenshot shows two FloatButtons.After clicking on map, the second button change icon and scroll up and hooking on bottomSheet edge.(Screenshot2). First Screenshot Second Screenshot 回答1: I suppose that FAB firstly is anchored to the right|bottom of the MapView and has the same elevation as the BottomSheet view. Once the BottomSheet is peeking to some height and BottomSheet top is equal to the half of the

Android BottomSheet with FloatButton

假如想象 提交于 2020-01-16 11:16:23
问题 How to make this interaction Bottom sheet and FloatButton like in Google Map? The first screenshot shows two FloatButtons.After clicking on map, the second button change icon and scroll up and hooking on bottomSheet edge.(Screenshot2). First Screenshot Second Screenshot 回答1: I suppose that FAB firstly is anchored to the right|bottom of the MapView and has the same elevation as the BottomSheet view. Once the BottomSheet is peeking to some height and BottomSheet top is equal to the half of the

How to set the fixed position for floating action button above very long listview in Android?

試著忘記壹切 提交于 2020-01-14 07:05:18
问题 I am developing an Android app that is mostly working with listview . But I am having a problem using Floating Action Button together with Long ListView . My problem is as below. When the list view is only has a few item. Floating item can be seen. This is the screenshot: As you can see above, Floating Action Button is still can be seen.But when ListView has so many items and become excessive to the screen, Floating Action Button cannot been seen. This is the screenshot of Long Listview For

Snackbar and CollapsingToolbarLayout with TranslucentNavigation

时间秒杀一切 提交于 2020-01-14 03:39:47
问题 I have Created an app with Scrolling Activity from the Android Studio Templets to test my coding of my main App affects that behavior or not, so I have just add to the code : <item name="android:windowTranslucentNavigation" tools:targetApi="kitkat">true</item> that shows the Snackbar behind the navigation bar as this screenshot (PS : I am using Xstane for redesigning my Navigation bar on my mobile but I think that does not affect the code cuz i have tried TranslucentNavigation with Snackbar

Floating Action Menu implementation using Float action button from Android Design Support library [closed]

假如想象 提交于 2020-01-12 18:49:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there any simple implementation of Floating Action Menu using Floating Action Button from Android Design Support Library ? 回答1: I Found one here: https://github.com/chrisbanes/cheesesquare Hope it helps :) 来源: https://stackoverflow.com/questions/30523144/floating-action-menu-implementation-using-float-action

Floating Action Button

余生颓废 提交于 2020-01-09 05:39:31
问题 I have been trying to use Floating Action Button. I tried to use some of the resources suggested on here and the links were great; however, I couldn't use alot of them because of problems with dependicies. I tried to fix it but it got more messed up. Long story short, I use the following code as a way to bypass dependicies in my bundle. I got the button to work; however, I couldn't figure out how to have options to appear when the button is clicked. I tried on clicklistener and other ways but

How to make FAB work in Fragment from a Activity and not in AppCompatActivity

淺唱寂寞╮ 提交于 2020-01-07 05:23:09
问题 I'm putting my FAB in a Fragment from an Activity and I keep getting this error: 10-01 21:01:55.238 22031-22031/com.vei.scanandgo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.vei.scanandgo, PID: 22031 android.view.InflateException: Binary XML file line #408: Error inflating class android.support.design.widget.FloatingActionButton at android.view.LayoutInflater.createView(LayoutInflater.java:620) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) at android.view

Android Floating Action Button doesn't get fixed at the bottom

Deadly 提交于 2020-01-07 03:53:09
问题 I have a fragment wich renders a recycleview with an floating action buttom. The problem is that when the list is empty, the fab keeps on the right top, when the list has few items, the fab keeps bellow the list but not at the bottom, and it only keeps totatly at the bottom when the list fill the screen with items. Could somebody help me please? Bellow is my code: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com