Android-SpeedyViewSelector alternatives and similar packages
Based on the "Other Widget" category.
Alternatively, view Android-SpeedyViewSelector 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-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. -
android-pdfview
[DEPRECATED] A fast PDF reader component for Android development -
android-pathview
Android view with both path from constructed path or from svg. -
AndroidTreeView
AndroidTreeView. TreeView implementation for android -
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. -
android-viewflow
A horizontal view scroller library for Android -
KenBurnsView
Android ImageViews animated by Ken Burns Effect -
TourGuide
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View -
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 -
android-segmented-control
ios UISegmentedControl for android -
TastyToast
:bread: Make your native android Toasts Tasty -
StickyGridHeaders
An Android Library that makes it easy to make grid views with sectioned data and headers that stick to the top. -
AnimatedSvgView
Animated SVG Drawing for Android -
range-bar
Android widget for selecting a range of values. -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation -
ElasticDownload
We are not Gif makers, We are developers -
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. -
Android-SwipeToDismiss
Android swipe-to-dismiss mini-library and sample code -
StandOut
StandOut lets you easily create floating windows in your Android app. -
Flashbar
⚡️A highly customizable, powerful and easy-to-use alerting library for Android. -
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. -
Emoji
A library to add Emoji support to your Android / JVM Application -
FancyCoverFlow
A cool Open Source CoverFlow view for Android with several fancy effects. -
SwipeStack
A simple, customizable and easy to use swipeable view stack for Android. -
NiftyNotification
effects for android notifications -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
android-sliding-layer-lib
Highly customizable SlidingLayer as you have seen in Wunderlist -
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. -
SwipeSelector
A nicer-looking, more intuitive and highly customizable alternative for radio buttons and dropdowns for Android.
Appwrite - The open-source backend cloud platform
* 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-SpeedyViewSelector or a related project?
README
Android-SpeedyViewSelector
This is a change Background Or TextColor Selector support library, with which you can directly specify the Background to be displayed in different states or TextColor Layout xml, such as clicking the button effect, the conventional practice is to create Selector xml file in drawable directory but when the project becomes larger when the file back to the directory Selector cause more and more difficult to maintain and achieve the Library can easily solve these problems, and can also achieve a lot Shape effects can be achieved, if you are using process have any questions or suggestions, please send an email to my email below, thank you!
For more information please see the website
Screenshots
Android-SpeedyViewSelector with xml code
<net.soulwolf.widget.speedyselector.widget.SelectorTextView
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="8dp"
android:textSize="16sp"
android:clickable="true"
android:background="@color/sample_primary"
android:textColor="@color/sample_primary"
soulwolf:spStatePressedTextColor="@color/sample_accent"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="8dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:text="SelectorTextView"/>
<net.soulwolf.widget.speedyselector.widget.SelectorTextView
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="8dp"
android:textSize="16sp"
android:layout_marginTop="8dp"
android:clickable="true"
android:background="@color/sample_primary"
android:textColor="@color/sample_primary"
soulwolf:spStatePressedTextColor="@color/sample_accent"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="0dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:text="SelectorTextView"/>
<net.soulwolf.widget.speedyselector.widget.SelectorTextView
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="8dp"
android:textSize="16sp"
android:layout_marginTop="8dp"
android:clickable="true"
android:background="@color/sample_primary"
android:textColor="@color/sample_primary"
soulwolf:spStatePressedTextColor="@color/sample_accent"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="360dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:text="SelectorTextView"/>
<net.soulwolf.widget.speedyselector.widget.SelectorFrameLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="20dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="8dp"
android:clickable="true"
android:layout_height="wrap_content"/>
<net.soulwolf.widget.speedyselector.widget.SelectorFrameLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="20dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="0dp"
android:clickable="true"
android:layout_height="wrap_content"/>
<net.soulwolf.widget.speedyselector.widget.SelectorFrameLayout
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="20dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="360dp"
android:clickable="true"
android:layout_height="wrap_content"/>
<net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="8dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="8dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:clickable="true"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="SelectorRelativeLayout"
android:gravity="center"/>
</net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout>
<net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="8dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="0dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:clickable="true"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="SelectorRelativeLayout"
android:gravity="center"/>
</net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout>
<net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:padding="8dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="360dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:clickable="true"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="SelectorRelativeLayout"
android:gravity="center"/>
</net.soulwolf.widget.speedyselector.widget.SelectorRelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center_horizontal"
android:orientation="horizontal">
<net.soulwolf.widget.speedyselector.widget.SelectorLinearLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="150dp"
android:layout_height="150dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="360dp"
android:clickable="true"
android:gravity="center"
android:padding="8dp"
soulwolf:spJustBorder="true"
soulwolf:spBorderWidth="1dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SelectorLinearLayout"/>
</net.soulwolf.widget.speedyselector.widget.SelectorLinearLayout>
<net.soulwolf.widget.speedyselector.widget.SelectorLinearLayout
xmlns:soulwolf="http://schemas.android.com/apk/res-auto"
android:layout_width="150dp"
android:layout_height="150dp"
soulwolf:spStateDefaultBackground="@color/sample_primary"
soulwolf:spStatePressedBackground="@color/sample_accent"
soulwolf:spRadius="360dp"
android:padding="8dp"
android:clickable="true"
android:layout_marginLeft="20dp"
android:gravity="center"
soulwolf:spJustBorder="false"
soulwolf:spBorderWidth="1dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SelectorLinearLayout"/>
</net.soulwolf.widget.speedyselector.widget.SelectorLinearLayout>
</LinearLayout>
Android-SpeedyViewSelector with java code
// BackgroundSelector
public void addStateBackground(StateType state,Drawable drawable);
public void addStateBackgroundResource(StateType state,@DrawableRes int draRes);
public void addStateBackground(StateType state,float radius,@ColorInt int color);
public void addStateBackground(StateType state,float radius,boolean justBorder,@ColorInt int color);
public void addStateBackground(StateType state,float radius,boolean justBorder,float borderWidth,@ColorInt int color);
public void addStateBackgroundResource(StateType state,float radius,@ColorRes int colorRes);
public void addStateBackgroundResource(StateType state,float radius,boolean justBorder,@ColorRes int colorRes);
public void addStateBackgroundResource(StateType state,float radius,boolean justBorder,float borderWidth,@ColorRes int colorRes);
public void requestSelector();
// TextColorSelector
public void setTextColorResource(@ColorRes int resId);
public void addTextStateColor(StateType state,@ColorInt int color);
public void addTextStateColorResource(StateType state, @ColorRes int colorRes);
public void requestSelector();
Attr params info
attrName
Explanation
spRadius
This parameter is used to set the radius of each corner Background!
spJustBorder
This parameter indicates whether to draw only border
spBorderWidth
This parameter indicates the width of the border
spStateDefaultBackgroundspStateDefaultTextColor
Background Or TextColor this parameter default to be displayed
spStateFocusedBackgroundspStateFocusedTextColor
Background Or TextColor this parameter StateFocused to be displayed
spStateWindowFocusedBackgroundspStateWindowFocusedTextColor
Background Or TextColor this parameter StateWindowFocused to be displayed
spStateEnabledBackgroundspStateEnabledTextColor
Background Or TextColor this parameter StateEnabled to be displayed
spStateCheckedBackgroundspStateCheckedTextColor
Background Or TextColor this parameter StateChecked to be displayed
spStateSelectedBackgroundspStateSelectedTextColor
Background Or TextColor this parameter StateSelected to be displayed
spStateActivatedBackgroundspStateActivatedTextColor
Background Or TextColor this parameter StateActivated to be displayed
spStatePressedBackgroundspStatePressedTextColor
Background Or TextColor this parameter StatePressed to be displayed
spStateActiveBackgroundspStateActiveTextColor
Background Or TextColor this parameter StateActive to be displayed
Implementing View!
SelectorAbsoluteLayout SelectorButton SelectorCheckBox SelectorEditText SelectorFrameLayout SelectorGridLayout SelectorImageButton SelectorLinearLayout SelectorRadioButton SelectorRadioGroup SelectorRelativeLayout SelectorTableLayout SelectorTextView SelectorView
Custom
// Background Selector
public class SelectorFrameLayout extends FrameLayout implements BackgroundSelector{
SpeedySelectorDelegate mSpeedySelectorDelegate;
public SelectorFrameLayout(Context context) {
super(context);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtain(this);
}
public SelectorFrameLayout(Context context, AttributeSet attrs) {
super(context, attrs);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtain(this,attrs);
}
public SelectorFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtain(this,attrs,defStyleAttr);
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public SelectorFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtain(this,attrs,defStyleAttr,defStyleRes);
}
@Override
public void addStateBackground(StateType state, Drawable drawable) {
mSpeedySelectorDelegate.addStateBackground(state,drawable);
}
@Override
public void addStateBackgroundResource(StateType state, @DrawableRes int draRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, draRes);
}
@Override
public void addStateBackground(StateType state, float radius, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,color);
}
@Override
public void addStateBackground(StateType state, float radius, boolean justBorder, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,justBorder,color);
}
@Override
public void addStateBackground(StateType state, float radius, boolean justBorder, float borderWidth, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,justBorder,borderWidth,color);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,colorRes);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, boolean justBorder, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,justBorder,colorRes);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, boolean justBorder, float borderWidth, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,justBorder,borderWidth,colorRes);
}
@Override
public void requestSelector() {
mSpeedySelectorDelegate.requestSelector();
}
}
// General Selector
public class SelectorTextView extends TextView implements GeneralSelector{
SpeedySelectorDelegate mSpeedySelectorDelegate;
public SelectorTextView(Context context) {
super(context);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtainGeneral(this);
}
public SelectorTextView(Context context, AttributeSet attrs) {
super(context, attrs);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtainGeneral(this, attrs);
}
public SelectorTextView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtainGeneral(this, attrs, defStyleAttr);
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public SelectorTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
mSpeedySelectorDelegate = SpeedySelectorDelegate.obtainGeneral(this, attrs, defStyleAttr, defStyleRes);
}
@Override
public void addStateBackground(StateType state, Drawable drawable) {
mSpeedySelectorDelegate.addStateBackground(state,drawable);
}
@Override
public void addStateBackgroundResource(StateType state, @DrawableRes int draRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, draRes);
}
@Override
public void addStateBackground(StateType state, float radius, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,color);
}
@Override
public void addStateBackground(StateType state, float radius, boolean justBorder, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,justBorder,color);
}
@Override
public void addStateBackground(StateType state, float radius, boolean justBorder, float borderWidth, @ColorInt int color) {
mSpeedySelectorDelegate.addStateBackground(state,radius,justBorder,borderWidth,color);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,colorRes);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, boolean justBorder, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,justBorder,colorRes);
}
@Override
public void addStateBackgroundResource(StateType state, float radius, boolean justBorder, float borderWidth, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addStateBackgroundResource(state, radius,justBorder,borderWidth,colorRes);
}
@Override
public void setTextColorResource(@ColorRes int resId) {
mSpeedySelectorDelegate.setTextColorRessource(resId);
}
@Override
public void addTextStateColor(StateType state, @ColorInt int color) {
mSpeedySelectorDelegate.addTextStateColor(state,color);
}
@Override
public void addTextStateColorResource(StateType state, @ColorRes int colorRes) {
mSpeedySelectorDelegate.addTextStateColorRessource(state, colorRes);
}
@Override
public void requestSelector() {
mSpeedySelectorDelegate.requestSelector();
}
}
Maven
<dependency>
<groupId>net.soulwolf.widget</groupId>
<url>https://dl.bintray.com/soulwolf/maven</url>
<artifactId>speedySelector</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
allprojects {
repositories {
jcenter()
}
}
compile 'net.soulwolf.widget:speedySelector:1.0.0'
Developed by
Ching Soulwolf - [email protected]
License
Copyright 2015 Soulwolf Ching
Copyright 2015 The Android Open Source Project for Android-SpeedyViewSelector
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-SpeedyViewSelector README section above
are relevant to that project's source code only.