Coder Social home page Coder Social logo

Comments (11)

douglasjunior avatar douglasjunior commented on August 18, 2024

It is okay to use setText because the selected value is only informative.

It's strange you say that the other options are disappearing. How are you using your Adapter?

from betterspinner.

Jackcar avatar Jackcar commented on August 18, 2024

I'm using like this:

    String[] statusArray = getActivity().getResources().getStringArray(R.array.statusArray);
    statusAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_dropdown_item_1line, statusArray);
    statusAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    mStatusSpinner.setAdapter(statusAdapter);

from betterspinner.

douglasjunior avatar douglasjunior commented on August 18, 2024

At some other time you're calling setAdapter?

from betterspinner.

Jackcar avatar Jackcar commented on August 18, 2024

No, just in the beginning.

from betterspinner.

douglasjunior avatar douglasjunior commented on August 18, 2024

You could create a small sample project to replicate the problem?

So I can have a check for you.

from betterspinner.

Jackcar avatar Jackcar commented on August 18, 2024

This is strange, because I used the better spinner in another activity with setText, but it give me no problems.

from betterspinner.

douglasjunior avatar douglasjunior commented on August 18, 2024

Yes. Unfortunately I dont know.

from betterspinner.

my541619352 avatar my541619352 commented on August 18, 2024

Same problem occurs to me
I made the Spinner lost focus, then other options came out.

from betterspinner.

douglasjunior avatar douglasjunior commented on August 18, 2024

Without replicating the problem is difficult to help.

from betterspinner.

Debarshi-Banerjee avatar Debarshi-Banerjee commented on August 18, 2024

I faced this problem..So i removed android:focusableInTouchMode="false"
from xml and IT DID WORK.....maybe its related to some focus event bug....didnt had time to dig deeper

from betterspinner.

smarques84 avatar smarques84 commented on August 18, 2024

@douglasjunior This issue seems to happen when we are using the spinner inside a fragment, in my case i am using the spinner inside a DialogFragment populated with a list. If you create a simple android button to change the text of the spinner you will reproduce the issue. Remember the spinner has to be inside a fragment for the issue to appear

@my541619352 what do you mean by "made the spinner lost focus"? I tried request focus on other component but the problem doesn't go away

@Jackcar Did you eventually fixed the problem?

from betterspinner.

Related Issues (20)

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.