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
Android Sliding Up Panel Demo -
ShortcutBadger
The ShortcutBadger makes your Android App show the count of unread messages as a badge on your App shortcut! -
Litho (By Facebook)
A declarative framework for building efficient UIs on Android. -
DragSortListView
Extension of the Android ListView that enables drag-and-drop reordering (No longer maintained). -
TapTargetView
An implementation of tap targets from the Material Design guidelines for feature discovery. -
android-viewbadger
A simple way to "badge" any given Android view at runtime without having to cater for it in layout -
android-pdfview
A fast PDF reader component for Android development -
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. -
AndroidViewHover
An elegant way to show your menu or messages. -
android-iconify
Integration of FontAwesome for Android -
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. -
aFileChooser
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 -
MaterialIntroScreen
Material Intro Screen implementation with easily extensible API. -
AndroidQuery
Android-Query (AQuery) is a light-weight library for doing asynchronous tasks and manipulating UI elements in Android. -
android-viewflow
A horizontal view scroller library for Android -
android-segmented-control
ios7 UISegmentedControl for android -
MultiSnapRecyclerView
Android library for multiple snapping of RecyclerView -
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 -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation. -
HoloColorPicker
An Android Holo themed colorpicker designed by Marie Schweiz -
TileView
The TileView widget is a subclass of ViewGroup that provides a mechanism to asynchronously display tile-based images, with additional functionality for 2D dragging, flinging, pinch or double-tap to zoom, adding overlaying Views (markers), built-in Hot Spot support, dynamic path drawing, multiple levels of detail, and support for any relative positioning or coordinate system. -
Android-SwipeToDismiss
Android swipe-to-dismiss mini-library and sample code -
ElasticDownload
Download Custom view with animation. -
Bubbles for Android
Facebook like chat bubble library -
Flashbar
A highly customizable, powerful and easy-to-use alerting library for Android. -
NiftyNotification
effects for android notifications.base on (Crouton) -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
android-sliding-layer-lib
This repository host a library that provides an easy way to include an autonomous layer/view that slides from the side of your screen and which is fully gesture ready, the same way as our detail view in Wunderlist 2 does. This pattern can also be seen in Google+’s notification center or in Basecamp’s detail view. -
Emoji
A simple library to add Emoji support to your Android Application. In a PopupWindow Emojis can be chosen. In order to edit and display text with Emojis this library provides public APIs: EmojiEditText & EmojiTextView. -
SortableTableView
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs. -
android-uitableview
Library and example project on how to use the UITableView component -
ScratchView
ScratchView repo is UX Design involving scratch cards like views which are scratched to reveal the information they conceal.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
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.