android


FloatingActionButton backgroundHint with alpha


I've put a fab in my application.
I set the backgroundHint with opacity (#44FF0000).
But there is a little circle inside.
fab image
How can I remove this little circle?
This is my code
<android.support.design.widget.FloatingActionButton
android:id="#+id/close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="70dp"
android:layout_marginRight="80dp"
android:src="#drawable/phone"
app:backgroundTint="#44FF0000" />
Thanks
You can't remove "this little circle". It's caused by the shadow being drawn beneath the background.
Alternative a)
Use solid background with anything that drops a shadow.
Alternative b)
Do not use shadow/elevation with translucent widgets. For FAB:
<...FloatingActionButton
app:elevation="0dp"
app:pressedTranslationZ="0dp"/>

Related Links

How to get sources for Android 7.1.1 (Nougat)?
How to listen to Fragment Backstack Pop only?
How can I sign testing apk in Android Studio?
How to hide and un-hide image button(cancel button) on video view when user touches the video screen?
Greendao entity when serialized using GSON doesn't contain related entity in Generated JSON string
Scan with Color Invert QR code doesn't work well in Android with ZXing
Android : The application may be doing too much work on its main thread
Android imageView zooming out when image is at 100% size
Android: supporting multiple screens failed
Is there any setting in android for seeing ANR for an app if app UI becomes unresponsive for say 10sec
No resource found that matches the given name:attr 'colorAccent'
Create transparent toolbar over map fragment
Gridview setChoiceMode(GridView.CHOICE_MODE_SINGLE) does not work
ViewPager with Picasso not loading inside RecyclerView Row
Fatal Exception: java.lang.IllegalArgumentException width and height must be > 0
SVG/VectorDrawable issue in android

Categories

HOME
sonarqube
xml
fabricjs
assembly
fuelux
gdb
mysql-workbench
jelastic
owl-carousel
rendering
alarm
permissions
trac
lanczos
joomla3.0
vimdiff
openpyxl
fhir
altera
intershop
chargify
android-7.0-nougat
apache2.4
lilypond
simpleitk
visual-glitch
blade
angular-routing
draft-js-plugins
onload
ms-access-2003
apktool
genexus-sd
uitapgesturerecognizer
finagle
android-sugarorm
biztalk-rule-engine
installshield-le
html-encode
reason
ods
hackintosh
apriori
photos
clang++
builder
facebook-pixel
dbcontext
arq
amq
custom-font
static-cast
git-flow
rsa-archer-grc
actor-platform
webjars
centrifuge
drawstring
vorpal.js
freepbx
aurora
thread-sleep
invoke-sqlcmd
contentcontrol
asyncdisplaykit
decimalformat
grgit
phonertc
uncompress
ocra
apache-commons-daemon
exceldatareader
crowd
jama
paste
vsx
git-repo
accesscontrolexception
xmltodict
gtm-oauth2
dolby-audio-api
font-awesome-4.0.0
booksleeve
appjs
apache-commons-dbutils
fsevents
mbeans
cdonts
collectionviewsource
objective-j
dot-emacs
openfaces
escrow
appliance

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App