Git Product home page Git Product logo

searchablespinner's People

Contributors

mdfarhanraja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

searchablespinner's Issues

requirement

can we add button near close in this spinner

Handle Back Pressed

Hi,

I was trying to handle the "back pressed" to close the dialog but since i'm working inside a fragment i'm not able to get the back's event.

So to avoid close the dialog only in the "closeTitle" (rippleViewClose) i'm setting a true value for "cancellable" through setCancellable(). But I think would be a nice feature be able to handle these back's events.

btw, congrats for the project.

ID issue

When i use same item name with two different id. onclicking the items it returns the same id
eg. when i use item name as item1 with id1
and item1 with id2

on clicking it returns same id as id1

itemName
item1 as Aj with id 7
item2 as Aj with id 9
but on clicking it returns same id as 7

ddd
gggg

Dialog is not closing

Dialog is not closing in any situation. When I select any item It's not closing and when I click on close button its not working.
Please help me soon

The keyboard is using the full screen

The keyboard is using the full screen and you have to press the button back to see the results, I'm using android 8.0, (In others EditText I set android:imeOptions="flagNoExtractUi" )

Support for more than Strings

Would it be possible to adapt the SpinnerDialog to support a list of Objects, rather than Strings? More specifically, I would like to see the type of the item parameter in public void onClick(String item, int position) be changed to Object.

I think PR #24 would be a good starting point. The first argument of onSpinerItemClick.onClick(...) could then just be listView.getItemAtPosition(i).

The reason I am asking is because currently I have to resort to using two lists; one for the items I actually want to display, and a second one that contains their 'labels' (i.e. Strings), which I use when creating the spinner dialog. Then, I use the position I receive from the onClick(String item,int position) callback to determine which object (from the first list) was actually selected. However, this does not seem to work when the results of the spinner dialog are filtered. In that case I get the position in the filtered list, rather than the position in the unfiltered list, which is what I need. I think it would be much easier if the callback just returned the object that was selected.

color

spinner dialog text color is white so there is nothing visible please help me out
here is my id - [email protected]

All list of items are not showing completely in landscape mode.

I am using this spinner dialog in the landscape mode of activity. In portrait mode, it is showing all list of items. but in Landscape mode, a limited number of items are showing in the dialog box and others are hidden at the bottom of the dialog. But appears can be searched. So how it can be resolved?

Using custom objects in list

Would it be possible to use a List of custom models as opposed to only strings and instruct the spinner to use a specific property/method of the object for the text display?

Improving SearchBox

Hi sir, can you improve your searchbox filtering.
For now searchbox only filtering list by first character. I need searchbox that can filter at any position.
just like String.constains("world") thanks.

setUseContainsFilter Bug

......
mString.add("Mumbai");
mString.add("Delhi");
mString.add("Bengaluru");
mString.add("Hyderabad");
mString.add("Ahmedabad");
mString.add("Chennai");
mString.add("Kolkata");
mString.add("Surat");
mString.add("Pune");
mString.add("Jaipur");
mString.add("Lucknow");
mString.add("Kanpur");
......
spinnerDialog.setUseContainsFilter(true),

show spinnerDialog,show 12 items,
then search 'm',show 2 items.
close spinnerDialog , show spinnerDialog,only show 2 items?

Cannot compile into Android Studio 3.0 Canary 4

Cannot compile into Android Studio 3.0 Canary 4.
I got an error when use it in AS 3.0 Canary 4:

style attribute @android:attr/windowEnterAnimation not found
style attribute @android:attr/windowExitAnimation not found

Please remove the "@" prefix from style.xml

    <item name="android:windowEnterAnimation">@anim/slide_in_bottom</item>
    <item name="android:windowExitAnimation">@anim/slide_out_top</item>

I get the problem when I wear android studio 3.0

I get the problem when I wear android studio 3.0, exactly when I enter

<style name = "DialogAnimations" /> <style name = "DialogAnimations.SmileWindow"> @ anim / slide_in_bottom @ anim / slide_out_top it looks like the latest version of android studio no longer support this .. I am waiting for your latest version that can be used in android studio 3.0 .. thanks

INFINITE SCROLL

I developed the infinite scroll and wish I could create a branch for you to evaluate. Thanks!

How to get ID?

I have a City Object (id, name). City List come from server. I change List to String Array. Here is some of my code; I can't get id when spinner selected. How to get id or this library doesn't not support to get id?

ArrayList<String> items = new ArrayList<>();
List<City> cityList = new ArrayList<>();

for (City city : response.body()) {
	items .add(city != null ? city.toString() : null);
}

spinnerDialog=new SpinnerDialog(MainActivity.this,items,"Select or Search City","Close Button Text");

Shows Error

java.lang.NoSuchFieldError: No field close of type I in class Lin/galaxyofandroid/spinerdialog/R$id; or its superclasses (declaration of 'in.galaxyofandroid.spinerdialog.R$id' appears in package)

Error

How can I Pass two value in spinner one for ID and second for Title

Hello Md Farhan,

I want to create app using your spinner in this app i want to show item title but i want to get two value id and title (item name) when i click on spinner item.

so please tell me how can i set custom ID and Title With Array List and get access it on click event.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.