All Projects → fennifith → Slideactionview

fennifith / Slideactionview

Licence: apache-2.0
An Android view which provides a nice slide-to-left/right interaction.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Slideactionview

System Alert Window Example
Example project showing use of SYSTEM_ALERT_WINDOW permission on Android 23+, with back button interception.
Stars: ✭ 39 (-44.29%)
Mutual labels:  android-ui
Phonenumberverificationui Android
Check out the new style for mobile number verification 😉😉😊😊
Stars: ✭ 52 (-25.71%)
Mutual labels:  android-ui
Moviebookingui Android
This is a concept of fetching a user's cinema show details like venue, movie, date & showtime before allowing him to place a cinema F&B order.
Stars: ✭ 62 (-11.43%)
Mutual labels:  android-ui
Sortabletableview
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Stars: ✭ 1,019 (+1355.71%)
Mutual labels:  android-ui
Colorpickerview
🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Stars: ✭ 1,042 (+1388.57%)
Mutual labels:  android-ui
Expandable Fab
A highly customizable 'speed dial' FloatingActionButton implementation.
Stars: ✭ 56 (-20%)
Mutual labels:  android-ui
Bluetooth State View
Material design animated Bluetooth state view for Android
Stars: ✭ 36 (-48.57%)
Mutual labels:  android-ui
Rippleview
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+)
Stars: ✭ 1,147 (+1538.57%)
Mutual labels:  android-ui
Grocerystore With Server
Grocery Store with server integration
Stars: ✭ 51 (-27.14%)
Mutual labels:  android-ui
Kakao
Nice and simple DSL for Espresso in Kotlin
Stars: ✭ 1,109 (+1484.29%)
Mutual labels:  android-ui
Tagsedittext
Android TagsEditText View
Stars: ✭ 47 (-32.86%)
Mutual labels:  android-ui
Lovelydialog
This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.
Stars: ✭ 1,043 (+1390%)
Mutual labels:  android-ui
Android Dial Picker
A custom rotating dial like picker for android
Stars: ✭ 56 (-20%)
Mutual labels:  android-ui
Dev tools
一些很实用工具或插件(开发或者日常使用)----慢慢更新ing
Stars: ✭ 41 (-41.43%)
Mutual labels:  android-ui
Fitbutton
The button which can use with icon, text, divider, custom ripple effect, border, corner radius e.t.c.
Stars: ✭ 63 (-10%)
Mutual labels:  android-ui
Buffertextinputlayout
A simple customised version of the TextInputLayout from the Android Design Support Library ⌨️
Stars: ✭ 991 (+1315.71%)
Mutual labels:  android-ui
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (-21.43%)
Mutual labels:  android-ui
Floatingactionbuttonspeeddial
A Floating Action Button Speed Dial implementation for Android that follows the Material Design specification (https://material.io/components/buttons-floating-action-button#types-of-transitions)
Stars: ✭ 1,164 (+1562.86%)
Mutual labels:  android-ui
Bubbles
⚡️A library for adding messenger style floating bubbles to any android application 📲
Stars: ✭ 66 (-5.71%)
Mutual labels:  android-ui
Battery Meter View
🔋 Material design battery meter (i.e. level, state) view for Android
Stars: ✭ 57 (-18.57%)
Mutual labels:  android-ui

SlideActionView is a simple widget that provides a nice slide-to-left/right interaction. This is a part of my efforts to modularize some of the things that I write; it was originally a part of Alarmio, and has been separated into its own library.

JitPack Build Status Discord

For testing and experimentation purposes, a sample apk can be downloaded here.

Sample App Use in Alarmio
img img

Usage

Setup

This project is published on JitPack, which you can add to your project by copying the following to your root build.gradle at the end of "repositories".

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

To add the dependency, copy this line into your app module's build.gradle file.

implementation 'me.jfenn:SlideActionView:0.0.2'

Basic Use

Adding the SlideActionView somewhere in your layout is fairly simple. Here is an example:

<me.jfenn.slideactionview.SlideActionView
  android:id="@+id/actionView"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_gravity="bottom" />

You will then want to specify icons for the left/right "slides". This can be done using the setLeftIcon and setRightIcon methods of the view. They accept both a Drawable and Bitmap, but it is more efficient to pass a Bitmap if possible.

SlideActionView actionView = findViewById(R.id.actionView);
actionView.setLeftIcon(leftIconBitmap);
actionView.setRightIcon(rightIconBitmap);

In order to listen for the swipe actions, you must implement the SlideActionListener interface.

actionView.setListener(new SlideActionView.SlideActionListener() {
  @Override
  public void onSlideLeft() {
    // slid left
  }
  
  @Override
  public void onSlideRight() {
    // slid right
  }
});

Theming

There are several methods that you can call to specify different colors. I will not go into great detail of what they do, but it should be fairly obvious. setTouchHandleColor changes the color of the touch handle. setOutlineColor affects the outlines. setIconColor changes the filter applied to both icons.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].