1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4A Library [Class] SearchView - More powerful alternative to AutoCompleteEditText

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jul 8, 2012.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question.
     
  2. SamuelP

    SamuelP Member Licensed User

    There are two parts in code, that seems make no effect, if I comment them out.

    1) in manifest-Editor
    Code:
    SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
    2) in Main
    Code:
    Private Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
        SearchView1.ActivityHeightChanged(NewHeight)
    End Sub
    For what are they? Do I need them?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    They are used to resize the list when the keyboards shows.
     
  4. SamuelP

    SamuelP Member Licensed User

    I see. So that the last entries are not behind the keyboard.
     
  5. luciano deri

    luciano deri Active Member Licensed User

    Is possible show listview on enter focus , without has begun wrote something?
     
  6. Mahares

    Mahares Well Known Member Licensed User

    If you check post#87 through post #90, your question is answered there.
     
  7. Ricky D

    Ricky D Well-Known Member Licensed User

    Where can I see the properties and methods?
     
  8. DonManfred

    DonManfred Expert Licensed User

    As it is a class you can find them all looking at the source.
     
  9. Ricky D

    Ricky D Well-Known Member Licensed User

    T
    Thanks
     
  10. Ricky D

    Ricky D Well-Known Member Licensed User

    I'd like to ask does autocompleteedittext or this one do auto complete as I type? I mean does it fill the text portion with the first match of the list and then refine the list as I type more text
     
    Last edited: Oct 6, 2017
  11. Erel

    Erel Administrator Staff Member Licensed User

    Yes. You can download the example and run it. It will take you 2 minutes to test...
     
  12. Erind Jushaj

    Erind Jushaj Member Licensed User

    Erel, would it be possible to attach the same list to multiple Editboxes?

    I have dynamical added editboxes that would work with the same list, CoinBox1, Coinbox2, etc.

    Is this possible?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    Good timing. I'm just working on adding a search dialog to XUI Views. It will soon be released.
     
    jimmyF likes this.
  14. Erind Jushaj

    Erind Jushaj Member Licensed User

    The problem I had Erel is that because I am adding dynamically I cannot call the xxx_TextChanged as my editboxes have all the time a different name...
     
  15. aidymp

    aidymp Active Member Licensed User

    At the risk of getting in trouble for raising an old thread (again) ;)

    This is a very basic problem but i'm confused several times the question has been asked & answered! but always the same answer and no example (i am very visual and need to see it!!!)

    Code:
    Sub Class_Globals
    Private et As EditText
    'change it to public!!
    so

    Code:
    Sub Class_Globals
    Public et As EditText
    'change it to public!!
    should make et. available in my main module??

    I need it as i want to clear the edit text when i have done with it. I could do it in the class. but it would be easier in Main..

    Thanks


    Aidy
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    Yes. If you don't see it then press on Enter on that line. This issue is fixed for the next version of B4A.
     
    aidymp likes this.
  17. Inman

    Inman Well-Known Member Licensed User

    Is it possible to add SearchView to activity via code?

    Also in the thread about B4XSerializator, it is mentioned that SearchView has a limit of 500 list items. Is that still the case? I can't use B4XSerializator as the server is not in my control.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    You can create a layout with only the SearchView and load it whenever needed. It must be added as a custom view.

    There is no size limit.
     
    Inman likes this.
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice