floating-action-button

My FloatingActionButton has some weird lines coming out of it on 4.4 and lower

允我心安 提交于 2019-12-10 02:58:37
问题 As the title says, my FloatingActionButton has some weird lines coming out of it only on 4.4 or lower. On Lollipop it works fine. This is a picture of the issue: The play image doesn't have those lines in it. My xml: <android.support.design.widget.FloatingActionButton android:id="@+id/play" android:layout_width="48dp" android:layout_height="48dp" android:src="@drawable/ic_av_play_arrow" app:borderWidth="0dp" app:elevation="6dp" app:layout_anchor="@+id/image" app:layout_anchorGravity="center

Flutter: How to attach a FloatingActionButton to the AppBar?

南笙酒味 提交于 2019-12-09 23:15:16
问题 The Scaffold -Widget only allows to place a FloatingActionButton at the bottom right or the bottom center. How can I place it between AppBar and body like here? [ 回答1: Siva Kumar gave nice example, but the second have of the FAB was not clickable. So I made some changes in the code and it works great now! class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => new _MyHomePageState(); } class

How to add floating button on top of the UITableView?

假如想象 提交于 2019-12-09 16:51:45
问题 I need to add floating button on top of UITableViewController. The following link is used for adding FloatingButton action on top of UIViewController Creating a floating menu in an iOS application I already tried to add this floating button to my UITableViewController but it is not visible. please help me thank you inadvance 回答1: First add the UITableView and then the Button. So it should be like this in the XIB Structure (Button is after the Table not before otherwise it will be hidden): Set

Bug with anchored FloatingActionButton in support library 24.2.1

核能气质少年 提交于 2019-12-09 14:32:51
问题 I have been having this issue since 24.2.0, but now I'm using 24.2.1 and the bug is still here, it only works well <= 24.1.1. I have an anchored FloatingActionButton done like this: <ScrollView 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.design.widget.CoordinatorLayout android:id="@+id

How to disable RecyclerView Items from clicking

笑着哭i 提交于 2019-12-09 09:05:25
问题 I am using Floating Action Button. I want to disable Recyclerview Items from Clicking when i press FAB button. I tried this method but not working setClickable(true); My Layout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:fab="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="#fff"

Floating action button's shadow clipping at view margins

这一生的挚爱 提交于 2019-12-09 02:16:12
问题 I have a floating action button anchored to the bottom right of a coordinator layout. It is 16dp from the margins of the view (the margins are included by default and specified in the dimens.xml file), but its shadow is clipping and has a square-shape appearance (see below). When I move the floating action button to 32dp from the margins of the view, its shadow displays properly. I have tried setting its elevation attribute ( android:elevation="5dp" ), but that seems to have no effect. I have

How to change FAB background color

前提是你 提交于 2019-12-09 02:09:07
问题 I am using Floating Action Button and I want to change the background color. Here is my code <android.support.design.widget.FloatingActionButton android:id="@+id/btnfab" android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentBottom="true" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_gravity="right|center_vertical" android:layout_marginBottom="20dp" android:src="@drawable/search" /> Here is the code I am using to try and

View which can be pulled up with a floating action button like google maps app

流过昼夜 提交于 2019-12-08 11:56:19
问题 I am trying to make something seen in Google Maps App when one clicks on a POI on the map a view comes up having a floating action button anchored to it. In my scenario it is like this but there is already a FAB which is already visible and when an action is triggered a small view is visible with an anchored FAB showing some details and when it is pulled up it covers the screen just like an activity (something visible in the aforementioned google maps app). I am compiling the app with SDK

Extended Android Floating Button

那年仲夏 提交于 2019-12-08 09:48:24
问题 I developed Android Application and I want to use extended floating button like floating button on Path Application in my layout. I hope someone can give me example about the code how to make this things. Thank You. 回答1: Here's a detailed tutorial on how to create a good extended floating button with animations https://www.learn2crack.com/2015/10/android-floating-action-button-animations.html 回答2: Try using this library and modify it to your liking by using the sam ple project in the library

Snackbar and CollapsingToolbarLayout with TranslucentNavigation

为君一笑 提交于 2019-12-08 07:35:30
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 Without CollapsingToolbarLayout and that works well) the App is supporting windowTranslucentNavigation