Chandelier

A nice swipe layout that provides new actions with a material design look and feel.

License

License

GroupId

GroupId

com.prolificinteractive
ArtifactId

ArtifactId

chandelier
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

Chandelier
A nice swipe layout that provides new actions with a material design look and feel.
Project URL

Project URL

https://github.com/prolificinteractive/chandelier
Source Code Management

Source Code Management

https://github.com/prolificinteractive/chandelier

Download chandelier

How to add to project

<!-- https://jarcasting.com/artifacts/com.prolificinteractive/chandelier/ -->
<dependency>
    <groupId>com.prolificinteractive</groupId>
    <artifactId>chandelier</artifactId>
    <version>0.1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.prolificinteractive/chandelier/
implementation 'com.prolificinteractive:chandelier:0.1.0'
// https://jarcasting.com/artifacts/com.prolificinteractive/chandelier/
implementation ("com.prolificinteractive:chandelier:0.1.0")
'com.prolificinteractive:chandelier:aar:0.1.0'
<dependency org="com.prolificinteractive" name="chandelier" rev="0.1.0">
  <artifact name="chandelier" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.prolificinteractive', module='chandelier', version='0.1.0')
)
libraryDependencies += "com.prolificinteractive" % "chandelier" % "0.1.0"
[com.prolificinteractive/chandelier "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » recyclerview-v7 jar 23.4.0
com.android.support » appcompat-v7 jar 23.4.0

Project Modules

There are no modules declared in this project.

Chandelier

Android Arsenal Maven Central Travis

A nice swipe layout that provides new actions with a material design look and feel.

Demo Screen Capture

Demo Screen Capture

Installation

Step 1. Add the JitPack repository to your build file

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

Step 2. Add the dependency

dependencies {
  implementation 'com.github.prolificinteractive:chandelier:${chandelierVersion}'
}

Usage

  1. Wrap your list around ChandelierLayout in your layouts or view hierarchy.
  2. Add a list of ActionItem using ChandelierLayout#populateActionItems() method.
  3. Set a OnActionSelectedListener to listen for selected action and update the view accordingly.

Or

1 Wrap your list around ChandelierLayout in your layouts or view hierarchy. 2. Create Objects that extend ActionItem and add them using ChandelierLayout#populateActionItems() method. 3. Override ActionItem#Execute() method to execute the action when selected.

Example:

  <com.prolificinteractive.chandelier.widget.ChandelierLayout
      android:id="@+id/chandelier_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:al_background="?attr/colorPrimary"
      >
      
      <!-- Insert your list here -->
      <include layout="@layout/example_recycler_view" />
  
  </com.prolificinteractive.chandelier.widget.ChandelierLayout>

Customization

XML attributes:

  • al_background Set background color

  • al_elevation Set elevation

  • al_selector Set background selector

  • al_animate_to_start_duration Set the duration that the layout takes to get into its original position. Default is 300 Millisecond.

  • ai_margin Set action item margin

Make sure to check sample for more examples.

Contributing

Would you like to contribute? Fork us and send a pull request! Be sure to checkout our issues first.

License

Chandelier is Copyright (c) 2018 Prolific Interactive. It may be redistributed under the terms specified in the LICENSE file.

Maintainers

prolific

Chandelier is maintained and funded by Prolific Interactive. The names and logos are trademarks of Prolific Interactive.

com.prolificinteractive

Prolific Interactive

Prolific Interactive is a strategy-led mobile agency partnering with high-growth lifestyle brands.

Versions

Version
0.1.0