Spinner with searchable items.

Overview

SearchableSpinner

Android Arsenal

Spinner with searchable items.

Searchable Spinner is a dialog spinner with the search feature which allows to search the items loaded in the spinner.

Alt text

Gradle

dependencies {
    ...
    compile 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'
}

Usage

<com.toptoche.searchablespinnerlibrary.SearchableSpinner
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

searchableSpinner.setTitle("Select Item");
searchableSpinner.setPositiveButton("OK");

Changelog

  • 1.3.1
    • Bug fixes.
  • 1.3.0
    • Added hint feature.
    • Removed the transparent black view appearing while typing.
    • Added a new feature for text changed listener.
  • 1.2.0
    • Prevented crashing when changing the orientation when the dialog is visible on screen (Issue #7).
    • Data now getting refreshed on setting the adapter again (Issue #6).
  • 1.1.0
    • New Feature to set the text of the title.
    • New Feature to set the text of the positive button as well as set a click listener on that button.
  • 1.0.2
    • Resolved the multidex issue.
  • 1.0.0
    • Initial Release

License

Copyright 2015-2016 Mitesh Pithadiya

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.
Comments
  • Fragment is java.lang.IllegalStateException: Fragment already added

    Fragment is java.lang.IllegalStateException: Fragment already added

    Hi there, could you add a method to check if the fragment is already added? This is a small issue, but it can be handled easy. I'm getting this error, on fast double click... java.lang.IllegalStateException: Fragment already added: SearchableListDialog{10fe7cc4 #0 TAG}

    opened by filipjelic 3
  • How to change the default string text

    How to change the default string text

    Hi, Firstly thanks this realy useful library... But I need help ;) . I want to use you module to develop a french app. But I don't know how to translate your UI. Can you explain how I can do this ?

    Thanks =)

    opened by mrsolarius 2
  • Query is getting printed.

    Query is getting printed.

    Hello,

    I implemented this library in my project but when i type any query in searchview of the dialog box, Its getting printed above the search view in an transparent layout i tried to find out the issue but i got nothing. Can you tell me how to remove that transparent layout.

    I have attached the screen shot bellow. device-2016-06-06-182713

    opened by mohitparyani 2
  • Added adapter factory for customize the list view elements in the dialog

    Added adapter factory for customize the list view elements in the dialog

    When you declare and configure the searchable spinner, can specify how instantiate the adpter for list view in the dialog. Below an example:

    mSpinner.setDialogAdapterFactory(new SearchableListDialog.AdapterFactory() { @Override public ArrayAdapter newInstance(List list) { return new MyCustomArrayAdapter(getContext(),list); } });

    opened by giacomomagini 1
  • Update SearchableSpinner.java

    Update SearchableSpinner.java

    Fix issue where a delayed display of dialog by the fragment manager would result in IllegalStateException where spinner is tapped more than once whilst waiting for the dialog to appear.

    opened by MatthewTrout 0
  • Support spinner adapters

    Support spinner adapters

    Currently, library supports only array adapters which is absolutely incorrect.

    Caused by: java.lang.ClassCastException: 
    my.custom.adapter.NewSpinnerAdapter cannot be cast to android.widget.ArrayAdapter at 
    com.toptoche.searchablespinnerlibrary.SearchableSpinner.setAdapter(SearchableSpinner.java:101)
    
    opened by echoAlexey 0
  • Improved functionality in ScrollView, solved issue with ContextWrapper

    Improved functionality in ScrollView, solved issue with ContextWrapper

    When the Spinner is used in a ScrollView the MotionEvent.ACTION_DOWN is not very suitable, it is better to use MotionEvent.ACTION_UP.

    In addition, to avoid exceptions with ContextWrapper I added a method to get the activity.

    References: http://stackoverflow.com/questions/13129428/accessing-activity-from-custom-button/27434704#27434704

    opened by maksymkhar 0
  • Crash When Double Tapped By Mistake

    Crash When Double Tapped By Mistake

    I experience a consistent crash when user click on SearchableSpinner widget multiple times. Below is what I get in logcat

    java.lang.IllegalStateException: Fragment already added: SearchableListDialog{a7f9997 #1 TAG}

    opened by BlackVick 0
  • Could not find com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1.

    Could not find com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1.

    Getting below error while compiling the project

    `Task failed with an exception.

    • What went wrong: Execution failed for task ':app:mergeDebugJavaResource'.

    Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1. Searched in the following locations: - https://repo.maven.apache.org/maven2/com/toptoche/searchablespinner/searchablespinnerlibrary/1.3.1/searchablespinnerlibrary-1.3.1.pom - https://dl.google.com/dl/android/maven2/com/toptoche/searchablespinner/searchablespinnerlibrary/1.3.1/searchablespinnerlibrary-1.3.1.pom Required by: project :app`

    opened by rafey022 2
  • Failed to resolve: com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1

    Failed to resolve: com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1

    here is my gradle

    `apply plugin: 'com.android.application'

    android { compileSdkVersion 33 defaultConfig { applicationId "com.example.thumbsol.accuratesurvey" minSdkVersion 19 targetSdkVersion 33 versionCode 3 versionName "3.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false debuggable false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }

    dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', { exclude group: 'com.android.support', module: 'support-annotations' }) //noinspection GradleCompatible implementation 'com.android.support:appcompat-v7:28.0.0' //noinspection GradleCompatible implementation 'com.android.support:design:28.0.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.android.support.constraint:constraint-layout:2.0.4' //noinspection GradleCompatible implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.facebook.network.connectionclass:connectionclass:1.0.1' implementation 'fr.bmartel:jspeedtest:1.32.1' testImplementation 'junit:junit:4.13.2' implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.10' implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'

    }`

    opened by rafey022 0
  • setOnSearchTextChangedListener cannot override

    setOnSearchTextChangedListener cannot override

    This I want to override and use my own CustomAdapter getFilter() to filter items with contains() instead of startsWith() It's not working, when I setOnSearchTextChangedListener still working as startsWith(). If I am wrong please tell me what is the correct way to implement contains search on top of this library. Thank you

    opened by ifahimkhan 0
Owner
Mitesh Pithadiya
Mitesh Pithadiya
An Android Widget for selecting items that rotate on a wheel.

Looking for maintainers I'm no longer active on this project but I'll still focus on fixing crashing issues and review any code changes etc. WheelView

Luke Deighton 888 Jan 3, 2023
Android library to display a list of items for pick one

PickerUI Android library to display a list of items for pick one with blur effect (if you wish). Support for Android 3.0 and up. It supports portrait

David Pizarro 630 Nov 19, 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 Dec 31, 2022
Overscroll any scrollable items!

ComposeOverscroll Overscroll any scrollable items! Preview compare with iOS demo Preview.for.overscroll.and.nested.invoke.mp4 How to use for column :

null 7 Dec 15, 2022
ðŸŽĻA Jetpack Compose searchable drop down menu library

Searchable-Dropdown-Menu-Jetpack-Compose ?? A Jetpack Compose Android Library to create a dropdown menu that is searchable. How to include it into you

Breens Robert 30 Dec 26, 2022
Android ListView that mimics a GridView with asymmetric items. Supports items with row span and column span

AsymmetricGridView An Android custom ListView that implements multiple columns and variable sized elements. Please note that this is currently in a pr

Felipe Lima 1.8k Jan 7, 2023
Drag and drop to reorder items in a list, grid or board for Android. Based on RecyclerView. Also supports swiping items in a list.

DragListView DragListView can be used when you want to be able to re-order items in a list, grid or a board. It also supports horizontal swiping of it

Magnus Woxblom 658 Nov 30, 2022
SimpleToDo is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item.

SimpleToDo is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item.

null 0 Jan 3, 2022
Todo List Application is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item

Todo List Application is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item

null 0 Jan 22, 2022
Android Spinner Dialog Library supported on both Java and Kotlin, Use for single or multi selection of choice

SpinnerDialog Android Spinner Dialog Library, Use for single or multi selection of choice Android UI Download To include SpinnerDialog in your project

Hamza Khan 55 Sep 15, 2022
Wheel-like spinner widget for Android

Update Dec 2016 Library is discontinued There's still a lot of wheel libraries out there. Update Oct 2014 I am thinking of rewriting this control. Upd

Dimitri Fedorov 641 Jan 2, 2023
Spinner with bottom sheet dialog for Android

This is a small library for spinner view with displaying options in bottom sheet dialog. This view doesn't improve or extend the default android Spinner. The library doesn't support any other types of showing menu, only bottom sheet dialog.

Oleg Nestyuk 23 Oct 19, 2022
PowerSpinner - 🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.

PowerSpinner - ?? A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.

Jaewoong Eum 881 Dec 30, 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
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 Dec 23, 2022
An Android Animation library which easily add itemanimator to RecyclerView items.

RecyclerView Animators RecyclerView Animators is an Android library that allows developers to easily create RecyclerView with animations. Please feel

Daichi Furiya 11.2k Jan 5, 2023
Android library providing simple way to control divider items (ItemDecoration) of RecyclerView

RecyclerView-FlexibleDivider Android library providing simple way to control divider items of RecyclerView Release Note [Release Note] (https://github

Yoshihito Ikeda 2.4k Dec 18, 2022
*** WARNING: This library is no longer maintained *** An easy way to add a simple 'swipe-and-do-something' behavior to your `RecyclerView` items. Just like in Gmail or Inbox apps.

SwipeToAction An easy way to add a simple 'swipe-and-do-something' behavior to your RecyclerView items. Just like in Gmail or Inbox apps. Integration

Victor Calvello 223 Nov 16, 2022
[] 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
🛒 Add a cart icon with item counter to the Toolbar. You can increment the counter based on the number of unique items the user has in the shopping cart.

Status CartCounter Add a cart icon with item counter to the Toolbar. You can increment the counter based on the number of unique items the user has in

Rowland Oti 30 Sep 23, 2021