ricardoalcocer / actionbarextras

Titanium Android Native Module that exposes ActionBar features not exposed by the Titanium SDK
MIT License
148 stars 61 forks source link

ActionBarExtras

gittio License issues

Overview

This module provides some extra functionality to configure the ActionBar that Titanium doesn't offer.

Features

Installation

Get it gitTio

Download the latest distribution ZIP-file and consult the Titanium Documentation on how install it, or simply use the gitTio CLI:

$ gittio install com.alcoapps.actionbarextras

Using it

First require it:

var abx = require('com.alcoapps.actionbarextras');

At this point the feature for forcing the "menu overflow" has been attached to your Activity, so if that's the only thing you were looking for, you're set.

Now, you can set custom properties like this:

// NOTE: make sure that your window is open 
// before you access the actionbar with abx
win.addEventListener('open',function(e){
  // setting extras
  abx.title = "The Title";
  abx.titleFont = "Chunkfive.otf";
  abx.titleColor = "blue";
});

To see what else you can do, see:

Some apps using ActionBarExtras

Make sure you send me your app links or a PR with an updated README.md

Contributors

See contributors

License

MIT License - http://alco.mit-license.org