This is a Titanium Mobile Mobile module (for Android) project that TiBubbleView https://github.com/k0sukey/TiBubbleView ported to Android.
Register your module with your application by editing tiapp.xml and adding your module.
Example:
<modules>
<module platform="android">com.tdtsh.tibubbleandroid</module>
</modules>
When you run your project, the compiler will combine your module along with its dependencies and assets into the application.
You can see screenshot's example at example/app.js.
varlabel=Ti.UI.createLabel({top: 10,right: 10,// or 14 (consider the bubble beak)bottom: 10,left: 14,// or 10 (consider the bubble beak)width: Ti.UI.SIZE,height: Ti.UI.SIZE,color: '#fff',textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,verticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,text: 'hello, world'});varTiBubble=require('com.tdtsh.tibubbleandroid');varbubble=TiBubble.createView({top: 0,left: 10,width: Ti.UI.SIZE,// just fit from contained labelheight: Ti.UI.SIZE,// just fit from contained labelbubbleColor: '#dfdee5',// default: #fffbubbleRadius: 20,// default: 20bubbleBeak: TiBubble.bubbleBeakLeft// default BUBBLE_BEAK_LEFTbubbleBeakVertical: TiBubble.bubbleBeakUpper// default BUBBLE_BEAK_LOWER});bubble.add(label);Caution! There is a little difference from iOS version
- bubbleColor
- bubbleRadius
- bubbleBeak / TiBubble.bubbleBeakLeft or TiBubble.bubbleBeakRight or TiBubble.bubbleBeakNone
- bubbleBeakVertical / TiBubble.bubbleBeakLower or TiBubble.bubbleBeakUpper
Original TiBubbleView https://github.com/k0sukey/TiBubbleView by Kosuke Isobe
The MIT License (MIT) Copyright (c) 2016 Tadatoshi Hanazaki
