About the Download


Ti.FAB is an Android Hyperloop wrapper of the native Floating Action Button component.
A Floating Action Button represents the primary action in an application.

1wjts   patterns_actions_fab2


These instructions are being shipped with the module, so you can check later on your README file.

Android Floating Action Button

This HyperLoop module allows you to use Floating Action Buttons inside an Android project.


This project uses HyperLoop. We recommend you to read the basics of HyperLoop in the links below before proceeding any further in this README.
iOS: Hyperloop_for_iOS-Programming_Guide
Android: Hyperloop_for_Android_Programming_Guide

HyperLoop does a pretty good job in allowing you to use Objective-C / Swift with Javascript syntax, but that doesn’t mean that you won’t
need to learn Objective-C / Swift if you want to customise the module / create your own. For that reason we highly recommend you to
learn the basics of Objective-C / Swift.
In the long run that will make your job easier, since Objective-C is far from being an easy language to understand at the first sight.

Environment setup

This module was tested and developed with the following environment:

  • Titanium SDK 5.5.0.v20160821213142
  • HyperLoop 1.2.5


Creating a HyperLoop-enabled project

  • Create a new Alloy project like you would normally do.
  • Take a look at the example tiapp.xml file that you’ve received from us. Your tiapp.xml should have the same properties defined in this example
    otherwise you’ll face some issues while building your project later on. Remember to change the GUID AND PROJECT ID!
  • Copy the files provided in the “app” folder to your project’s “app” folder as well.



You’ll find inside this zip a very simple example of how to implement Floating Action Buttons and Floating Action Menus in your app with Hyperloop.
HyperLoop DOES NOT work with LiveView as of now, so you will need to rebuild your project every time you change anything.

Creating a FAB is simple:

var FAB = require('HL_FloatingActionButton');
activity: activity,
size: HL_FloatingActionButton.SIZE_MINI,
normalColor: '#ca2127',
pressedColor: '#8a2020',
disabledColor: '#939595',
icon: 'guitar',
onClick: clickListener

You can use whatever icon you want by simply placing them inside your project’s app/platform/android/res/drawable-XXXX/ folders.
When creating the component with “createFloatingActionButton”, just pass a parameter named “icon” with the name of the icon image file.


One of the things we want to offer you as a reward for joining LoopModules is the ability to contact us to discuss and get help with problems that you may come across.
We’ve tested this module a lot of times and we want to deliver something that will work for everyone (as long as the environments are the same, e.g. SDK, HL version, and so on).
If you come across one of the following:

  • Bugs
  • Suggestions
  • Issues while compiling this module

Feel free to contact us at contact@loopmodules.com.

Demo running with Hyperloop