An open API service indexing awesome lists of open source software.

https://github.com/m1ga/ti.bottomsheet


https://github.com/m1ga/ti.bottomsheet

android bottomsheet titanium-mobile titanium-module

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Ti.BottomSheet & Ti.BottomSheetDialog for Android


for the iOS version have a look here: [ti.bottomsheetcontroller-ios](https://github.com/mbender74/ti.bottomsheetcontroller-ios).

__work in progress__ methods/properties/events might change before the first release.

## Example

```xml

```

```js
$.bs.open();
$.bsd.open();
```

## BottomSheet

Can be used for a peaking view at the bottom that can be extended.

### Methods

* show() or open()
* hide()
* toggle()
* add()

### Properties

* peakHeight
* dimAmount (dialog only, creation only)

### Events
* open
* close
* stateChanged: e.state (see Constants)

### Constants

* BottomSheet.STATE_DRAGGING
* BottomSheet.STATE_SLIDING
* BottomSheet.STATE_OPEN
* BottomSheet.STATE_PEAK
* BottomSheet.STATE_CLOSE

---
## BottomSheetDialog

The dialog version will dimm the background when it is shown.

### Methods

* show() or open()
* hide() or close()
* add()

### Properties

* backgroundColor
* borderRadius
* cancelable
* peakHeight

### Events

* dismissed
* open
* close
* stateChanged: e.state (see Constants)
* peak

### Constants

* BottomSheet.STATE_DRAGGING
* BottomSheet.STATE_SLIDING
* BottomSheet.STATE_OPEN
* BottomSheet.STATE_PEAK
* BottomSheet.STATE_CLOSE