B4A Library Floating Action Menu (FAM) and Floating Action Button (FAB)

Anser

Well-Known Member
Licensed User
Longtime User
May I ask a very stupid question.

What do you mean by API Level: 14. Android 4.0 ( ICE_CREAM_SANDWICH ) is required to use this lib ?

Does it mean the the android.jar version (ie in the B4A IDE, Tools->Configure Paths, android.jar)

OR

The devices that use this lib (final apk) should have Android version 14 or above running on it

Excuse me if this question is out of topic as far as this thread is concerned.

Regards
Anser
 

Tayfur

Well-Known Member
Licensed User
Longtime User
ı added it .
now recive ...

java.lang.NoSuchMethodError: No static method getColor(Landroid/content/Context;I)I in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/app/contact.backup-2/base.apk)
 

stanks

Active Member
Licensed User
Longtime User
maybe it is stupid question but, why

B4X:
...
    fam.ActivityHeight = 100%y
    fam.ActivityWidth = 100%x
...

thanks
 
Last edited:

aldifong

Member
Licensed User
Longtime User
Hi all,


I try the fab sample and it's running well. But when i try to create a new sample project to implement the fab, it failed.

I put the fab on the layout design and then on the activity_create, i just initialize the layout. But it failed...
So strange, in project libraries, i have core v5.8 and floating action button v1.02.


What might gone wrong? I'm not event start to code on the activity yet.


Thanks to any reply...
 

anOparator

Active Member
Licensed User
Longtime User
B4X:
Sub Activity_Create
...
fam.Activity Width = 100%x
If Activity.Width < Activity.Height Then
fam.SetLayout (250dip, 30dip, 50dip, 50dip)
Else
fam.SetLayout (550dip, 30dip, 50dip, 50dip)
End If 
...
...
play with the numbers , and btn1.LabelText can have any size content.
oops, btn1.LabelText disappear.

edit: The third arg of fam.SetLayout is the width of btn1.LabelText, 280dip works well for me.
 
Last edited:

itgirl

Active Member
Licensed User
Longtime User
thank you for pointing me to the right direction
i have tried
fam.SetLayout (100%x - 75dip, 30dip, 50dip, 50dip)

the left side works great but the btn1.LabelText is gone too i tried 280dip but sadly didnt work i think i will try other widths
 

Daniel-White

Active Member
Licensed User
Longtime User
I did not discover how to show the buttons horizontals instead vertical. Can we do that? the example show the buttons vertically. I would like to put horizontal.
Thankssssssssssssssssssss
 

johndb

Active Member
Licensed User
Longtime User
Has there been any further investigation & update on why we can't align the menu at a specific location?
 

DonManfred

Expert
Licensed User
Longtime User

achtrade

Active Member
Licensed User
Longtime User
The demo app works fine, my app only shows the buttons, the labels are missing. I'm using the exact same code. any idea ?
 

m643

Member
Licensed User
Longtime User
Can you help me with this? I wanna use the floating action menu in custom listview but the when I click the button the rest of the buttons are opened inside of the panel (see screenshot) How can I fix this?

 

Haris Hafeez

Active Member
Licensed User
Longtime User
I may be missing something obvious here but can we change the menu button's icon? In the example it seems to be fixed to show the '+' sign on the menu button.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…