android-switch-backport alternatives and similar packages
Based on the "Other Widget" category.
Alternatively, view android-switch-backport alternatives based on common mentions on social networks and blogs.
-
AndroidSlidingUpPanel
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano. -
BottomBar
(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern. -
ShortcutBadger
An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers. -
Litho (By Facebook)
A declarative framework for building efficient UIs on Android. -
SystemBarTint
[DEPRECATED] Apply background tinting to the Android system UI when using KitKat translucent modes -
DragSortListView
Android ListView with drag and drop reordering. -
TapTargetView
An implementation of tap targets from the Material Design guidelines for feature discovery. -
android-viewbadger
[DEPRECATED] A simple way to "badge" any given Android view at runtime without having to cater for it in layout -
AndroidViewHover
An elegant way to show your menu or messages. -
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. The library is based on the code of Mario Klingemann. -
android-pdfview
[DEPRECATED] A fast PDF reader component for Android development -
android-iconify
Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,... -
DraggablePanel
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component. -
AndroidTreeView
AndroidTreeView. TreeView implementation for android -
android-pathview
Android view with both path from constructed path or from svg. -
KenBurnsView
Android ImageViews animated by Ken Burns Effect -
aFileChooser
[DEPRECATED] Android library that provides a file explorer to let users select files on external storage. -
Swipecards
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content. -
TourGuide
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View -
android-viewflow
A horizontal view scroller library for Android -
MaterialIntroScreen
Inspired by Heinrich Reimer Material Intro and developed with love from scratch -
Flow
Name UI states, navigate between them, remember where you've been. -
MultiSnapRecyclerView
Android library for multiple snapping of RecyclerView -
chromeview
Android WebView implementation that uses the latest Chromium code -
TastyToast
:bread: Make your native android Toasts Tasty -
android-segmented-control
ios UISegmentedControl for android -
StickyGridHeaders
An Android Library that makes it easy to make grid views with sectioned data and headers that stick to the top. -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation -
range-bar
Android widget for selecting a range of values. -
HoloColorPicker
An Android Holo themed colorpicker designed by Marie Schweiz -
TileView
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing. -
ElasticDownload
We are not Gif makers, We are developers -
Android-SwipeToDismiss
Android swipe-to-dismiss mini-library and sample code -
StandOut
StandOut lets you easily create floating windows in your Android app. -
Bubbles for Android
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development. -
Flashbar
⚡️A highly customizable, powerful and easy-to-use alerting library for Android. -
FancyCoverFlow
A cool Open Source CoverFlow view for Android with several fancy effects. -
Emoji
A library to add Emoji support to your Android / JVM Application -
SwipeStack
A simple, customizable and easy to use swipeable view stack for Android. -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
NiftyNotification
effects for android notifications -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
android-sliding-layer-lib
Highly customizable SlidingLayer as you have seen in Wunderlist -
android-uitableview
Library and example project on how to use the UITableView component -
SortableTableView
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs. -
ScratchView
ScratchView repo is UX Design involving scratch cards like views which are scratched to reveal the information they conceal.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of android-switch-backport or a related project?
README
Android Switch Preference Backport
A backport of the SwitchPreference
component that was introduced on Android 4 (ICS / level 14).
This port works on Android 2.1+ (Eclair MR1 / level 7).
The current version of this library is 2.0.1
.
IMPORTANT: THIS LIBRARY IS NOW DEPRECATED
Since the AppCompat library now includes a Switch widget backport (SwitchCompat
), and a SwitchPreference widget backport (SwitchPreferenceCompat
), this library is no longer useful.
I was glad to work on this library and to see that it has been used in many projects.
How to use
Adding the library to your project
Option 1: Gradle
The aar artifact is available at the jcenter repository. Declare the repository and the
dependency in your build.gradle
file:
repositories {
jcenter()
}
(...)
dependencies {
compile 'org.jraf:android-switch-backport:2.0.1'
}
Option 2: Android library project (ant / Eclipse)
This is an Android library project, you have to add it as a dependency to your project (please see this page to know how to do that.)
Using the SwitchPreference
Once you have done that, have a theme for your application (or Activity), that declares the asb_switchPreferenceStyle
item
to be the value @style/asb_Preference.SwitchPreference
.
The simplest way to do that is to create a themes.xml
file in your project's res/values
folder with this contents:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.App" parent="Theme.AppCompat">
<item name="asb_switchPreferenceStyle">@style/asb_Preference.SwitchPreference</item>
</style>
</resources>
And use it in your Application or Activity by updating your AndroidManifest.xml
file:
(...)
<application
android:theme="@style/Theme.App"
(...)
or
(...)
<activity
android:theme="@style/Theme.App"
(...)
Then in your preferences xml file:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" >
<org.jraf.android.backport.switchwidget.SwitchPreference
android:key="testKey"
android:title="SwitchPreference Test"
app:asb_summaryOff="@string/summary_off"
app:asb_summaryOn="@string/summary_on" />
</PreferenceScreen>
Sample app
A sample app is available in the [sample](sample) folder, and also on the Play Store:
Credits
The code was copied directly from the Android 5.0 (Lollipop / level 21) source code, then slightly tweaked by myself ([email protected]) to make it run on 2.1+ (Eclair MR1 / level 7). The v1 SwitchPreference was added by Intrications (intrications.com / github.com/intrications), also by taking code from Android and tweaking it a bit. Other people also have contributed tweaks and fixes, please see this page for a detailed list: https://github.com/BoD/android-switch-backport/graphs/contributors.
Contributing
Pull requests are welcome, as long as they are consistent to the original SwitchPreference of the Android sdk.
Please do not contribute improvements that are not present in the original sdk classes! I believe it would be confusing for this backport to have a feature set different than the original sdk classes. It would also lead to difficult situations if/when stopping using this backport and using the sdk classes instead (which should happen when dropping support for old platforms). Thank you very much.
Licence
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.
*Note that all licence references and agreements mentioned in the android-switch-backport README section above
are relevant to that project's source code only.