be.k0suke.tifab | Floating Action Button for Titanium Alloy Widget | Widget library
kandi X-RAY | be.k0suke.tifab Summary
kandi X-RAY | be.k0suke.tifab Summary
Floating Action Button for Titanium Alloy Widget.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of be.k0suke.tifab
be.k0suke.tifab Key Features
be.k0suke.tifab Examples and Code Snippets
Community Discussions
Trending Discussions on be.k0suke.tifab
QUESTION
As of today, there's no native support for FloatingActionButton on Appcelerator Titanium yet, so I was wondering which is the best way to emulate it.
I want to create a FloatingActionButton like this one:
I tried different approaches but none of them seem to be 100% accurate.
I've seen that there's a couple of modules on GitHub, but one of them does not accept icons or at least I don't know how to use them (https://github.com/k0sukey/be.k0suke.tifab) and the other one requires me to enable Hyperloop and disable LiveView (https://github.com/appcelerator-forks/loop-modules.Ti.FAB), which will slow down compilation times and thus making me waste a lot of time.
I also tried creating a circular view with an ImageView inside it, but it's not showing correctly, the backgroundColor is not covering all the View:
My code looks like this:
XML:
...ANSWER
Answered 2017-Oct-30 at 11:48I think the only issue is in using the ImageView which seems to have some background color. There are multiple ways to create this button, but here is a sample app which creates almost 99% similar FAB button.
https://drive.google.com/file/d/0B4ZdsEjK2ySIMXd1YS15ZTk1TDg/view?usp=sharing
It contains a sample source code of how you can create better FAB buttons for iOS & Android using single code-base. It also contains a Material Font file which shows how you can use Fonts to create vector image/icons instead of ImageView.
Here's the link to read more about using Labels in places of ImageView.
This sample code will create icons like below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install be.k0suke.tifab
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page