Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Library] Floating Action Button from Android L on Kitkat and below

OP Faiz Malkani

14th December 2014, 05:01 PM   |  #31  
Junior Member
Flag sialkot
Thanks Meter: 0
 
18 posts
Join Date:Joined: Apr 2012
More
Help
I just started android programming so this might sound silly but
I am not getting the white shade that comes on the button in the sample apk and the color
does not return to its original color it gets darker. I think it is because of the rect as i have to import the library myself but I am not sure a little help please
27th December 2014, 11:46 AM   |  #32  
yazeed44's Avatar
Junior Member
Flag Riyadh
Thanks Meter: 6
 
14 posts
Join Date:Joined: Jan 2013
More
Question
Can i use multiple Fabs (One parent , multiple children ) ?
21st January 2015, 03:16 PM   |  #33  
Junior Member
Flag Paris
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
More
Hi,

is your FAB adapted for tablet too?
Thank you in advance.
22nd January 2015, 02:05 PM   |  #34  
Faiz Malkani's Avatar
OP Forum Moderator / XDA Portal Team
Flag Mumbai
Thanks Meter: 1,863
 
7,598 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by ponnex

Hey! this one is pretty awesome! been wondering if it's possible to use this on existing .apk? I know this is for developing apps from scratch eclipse or android studio, but maybe it will be possible on decompiling .apk (mms.apk for example) and add those in xmls and .smali? hehe

I don't see why not

Quote:
Originally Posted by shazy792

I just started android programming so this might sound silly but
I am not getting the white shade that comes on the button in the sample apk and the color
does not return to its original color it gets darker. I think it is because of the rect as i have to import the library myself but I am not sure a little help please

What do you mean, "because of the rect"?

Quote:
Originally Posted by yazeed44

Can i use multiple Fabs (One parent , multiple children ) ?

I don't see a use case for this, but sure, why not?

Quote:
Originally Posted by JJ86

Hi,

is your FAB adapted for tablet too?
Thank you in advance.

It is, the size consistency is maintained across form factors
22nd January 2015, 02:19 PM   |  #35  
Junior Member
Flag Paris
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
More
So, if i use it in a tablet (with an interface composed by 2 fragments) the FAB will go on the left, just like the Gmail tablet app?
(Forgive me, i wasn't very clear on my previous post!)
22nd January 2015, 03:25 PM   |  #36  
ponnex's Avatar
Senior Member
Flag Cagayan de Oro
Thanks Meter: 266
 
329 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Quote:
Originally Posted by Faiz Malkani

I don't see why not

But how would you achieve to do that? XD
22nd January 2015, 05:41 PM   |  #37  
Faiz Malkani's Avatar
OP Forum Moderator / XDA Portal Team
Flag Mumbai
Thanks Meter: 1,863
 
7,598 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by JJ86

So, if i use it in a tablet (with an interface composed by 2 fragments) the FAB will go on the left, just like the Gmail tablet app?
(Forgive me, i wasn't very clear on my previous post!)

That depends on the ViewGroup that you put the FAB in

Quote:
Originally Posted by ponnex

But how would you achieve to do that? XD

Decompile. add the FAB in the XML, lookup the documentation methods and somehow implement them. I'm not versed in smali, so I wouldn't know details
23rd January 2015, 01:55 AM   |  #38  
ponnex's Avatar
Senior Member
Flag Cagayan de Oro
Thanks Meter: 266
 
329 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Quote:
Originally Posted by Faiz Malkani

Decompile. add the FAB in the XML, lookup the documentation methods and somehow implement them. I'm not versed in smali, so I wouldn't know details

Thanks! low level language such as smali is not that easy to implement haha I'll try anyways.
23rd January 2015, 12:44 PM   |  #39  
yazeed44's Avatar
Junior Member
Flag Riyadh
Thanks Meter: 6
 
14 posts
Join Date:Joined: Jan 2013
More
Quote:

I don't see a use case for this, but sure, why not?

To make something like this https://www.dropbox.com/s/u916cbv9nd...42-50.jpg?dl=0

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes