Android library for swipable gestures

Related tags

Animations Swipper
Overview

Swipper

Android Library for custom views to control brightness , volume and seek through swipable gestures . These views could easily replace the conventional volume / brightness / seek controls that we have in music player ,video player or gallery apps .

                                                    

Dependency

Add dependency to build.gradle of your app
 dependencies
 {
 compile 'com.swipper.library:library:0.1.1'
 }

Usage

Extend the activity in which you want to implement by Swipper instead of Activity / AppCompatActivity like:

public class MainActivity extends Swipper{}

Pass the context of your activity in set(context) method in onCreate() of your activity like :

set(this)

Now select swipe options for Brightness/Volume/SeekTo functions , to do this call Brightness() , Volume() , Seek() methods with orientation as parameter in onCreate() of your activity , suppose you want brightness on vertical swipe then do this:

Brightness(Orientation.VERTICAL)

Orientation can also be set to HORIZONTAL for working on horizontal swipe or to CIRCULAR for circular seek bar . Similarily do this for volume too .

Volume(Orientation.CIRCULAR)

Circular custom view appears on double tapping the screen

In seek method you need to pass your VideoView / Mediaplayer object along with orientation parameter , like:

 MediaPlayer mediaPlayer=.....
 Seek(Orientation.HORIZONTAL,mediaPlayer)

Orientations

Orientation Description
Orientation.VERTICAL Associates Brightness/Volume/Seek option on vertical gesture i.e up and down swipe
Orientation.HORIZONTAL Associates Brightness/Volume/Seek option on horizontal gesture i.e left and right swipe
Orientation.CIRCULAR Associates Brightness or Volume option on circular seek bar

Other Methods

Method Role
setColor(String color) pass hex color to change color of custom view which is by default a shade of orange
disableBrightness() to stop working of view associated with brightness
disableSeek() to stop working of view associated with Seek
disableVolume() to stop working of view associated with Volume
enableBrightness() to again start the working of view associated with Brightness
enableSeek() to again start the working of view associated with Seek
enableVolume() to again start the working of view associated with Volume

Library is completely exclusive and no external library has been used in making it

License

Copyright 2016 Pulkit Karira

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
An Android library which provides simple Item animations to RecyclerView items
An Android library which provides simple Item animations to RecyclerView items

RecyclerViewItemAnimators Library Travis master: This repo provides: Appearance animations Simple animators for the item views Quick start You can now

Library containing common animations needed for transforming ViewPager scrolling for Android v13+.
Library containing common animations needed for transforming ViewPager scrolling for Android v13+.

ViewPagerTransforms Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the

Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa

FabulousFilter Show some ❤️ and star the repo to support the project This library is the implementation of filter-concept posted on MaterialUp.com. It

Android library to control Transition animates. A simple way to create a interactive animation.
Android library to control Transition animates. A simple way to create a interactive animation.

TransitionPlayer Android library to control Transition animates. A simple way to create a interactive animation. Demo1 SimpleTransition Code: ....

Road Runner is a library for android which allow you to make your own loading animation using a SVG image
Road Runner is a library for android which allow you to make your own loading animation using a SVG image

Road Runner Road Runner is a library for android which allow you to make your own loading animation using a SVG image Sample video View in Youtube Dem

FPSAnimator is very easy animation library for Android TextureView and SurfaceView.
FPSAnimator is very easy animation library for Android TextureView and SurfaceView.

FPSAnimator A simple but powerful Tween / SpriteSheet / ParabolicMotion / animation library for Android TextureView and SurfaceView. Features The cont

Android library for material scrolling techniques.
Android library for material scrolling techniques.

material-scrolling Android library for material scrolling techniques. Features Easily implement material scrolling techniques with RecyclerView. Custo

Android LiquidSwipe Library
Android LiquidSwipe Library

LiquidSwipe Android LiquidSwipe Library Default Touch Interactive LiquidSwipe is a viewpager library that can be used to make awesome onboarding desig

Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon
Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon

MultiImageView Library for display a few images in one MultiImageView like avatar of group chat Who we are Need iOS and Android apps, MVP development

Comments
  • default brightness disabled issue

    default brightness disabled issue

    i am facing issue in brightness. if i am keeping brightness code my default brightness bar is not working its disabled . can anybody provide some solution ??

    opened by pals-ric 1
  • No freedom to extends any class other then Swipper

    No freedom to extends any class other then Swipper

    With the current configuration a user cannot extends any java class other than Swipper and use the swipper library features at the same time.

    This must be avoided so as to give user more freedom!

    opened by pkarira 0
  • Option to pass a particular view

    Option to pass a particular view

    Instead of activating the controls on the whole screen, user must be given the freedom to pass a particular view as a parameter while initialising the library. So that the controls are activated only on that particular view.

    opened by pkarira 0
Owner
Mobile Development Group
Mobile Development Group create products to make experience of people at IITR easy.
Mobile Development Group
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures

Stfalcon ImageViewer A simple and customizable full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" g

Stfalcon LLC 1.9k Jan 5, 2023
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

Android StackBlur Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. Th

Enrique López Mañas 3.6k Dec 29, 2022
Postman is a reactive One-tap SMS verification library. This library allows the usage of RxJava with The SMS User Consent API

What is Postman? Postman is a reactive One-tap SMS verification library. This library allows the usage of RxJava with The SMS User Consent API Usage P

Cafer Mert Ceyhan 129 Dec 24, 2022
Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.

1. Add dependency dependencies { implementation 'com.hbb20:android-country-picker:X.Y.Z' } For latest version, 2. Decide your use-case

Harsh B. Bhakta 65 Dec 6, 2022
Android Library that lights items for tutorials or walk-throughs etc...

Spotlight Gradle dependencies { implementation 'com.github.takusemba:spotlight:x.x.x' } Usage val spotlight = Spotlight.Builder(this) .setTarg

TakuSemba 3.4k Jan 4, 2023
[] An Android library which allows developers to easily add animations to ListView items

DEPRECATED ListViewAnimations is deprecated in favor of new RecyclerView solutions. No new development will be taking place, but the existing versions

Niek Haarman 5.6k Dec 30, 2022
Android Rubber Picker Library

RubberPicker RubberPicker library contains the RubberSeekBar and RubberRangePicker, inspired by Cuberto's rubber-range-picker. Getting started Setting

Chrisvin Jem 547 Jan 5, 2023
EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.

EtsyBlur EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the past Etsy app. Try out the sa

Manabu S. 755 Dec 29, 2022
[] Android library for using the Honeycomb animation API on all versions of the platform back to 1.0!

DEPRECATED NineOldAndroids is deprecated. No new development will be taking place. Existing versions will (of course) continue to function. New applic

Jake Wharton 4.5k Jan 9, 2023
Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon

ChatKit for Android ChatKit is a library designed to simplify the development of UI for such a trivial task as chat. It has flexible possibilities for

Stfalcon LLC 3.6k Jan 5, 2023