Open Source & Free  

Keyboard Keys & Android Pipeline

Keyboard Keys & Android Pipeline

Header Image





Picture



Some features we have in Codename One are a bit hidden behind the surface, we add them as a patch for a developer and don’t have the proper place to document them so they get buried. Case in point is the ability in Android to use the search magnifier icon instead of the done button. To get that functionality you can just set a client property on the relevant text field as such:

 Display.getInstance().putClientProperty(“searchField”, Boolean.TRUE);

This also allows other options such as sendButton & goButton.

On an unrelated note we are now making some progress on the new

Android graphics pipeline

implementation which should hopefully allow us to scale our graphics further. We also made quite a few improvements to the new Codename One VM on iOS squashing quite a few bugs. However, more issues and performance penalties remain so we are still actively improving this. If you have test cases and issues specific to the VM please let us know so we can address them and move this new VM to a production quality product.


Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended…. If that is the case please let us know via the comments section below.

2 Comments

  • Anonymous says:

    How do i listen to the done or search event when the user presses either the search button or send. I want to capture the event. Also, instead of the search icon, can I set the text to something like “create”?

  • Anonymous says:

    goButton instead of searchButton might produce something that’s closer to what you want.

    You can just use action listener to get the event of text input completion.

Leave a Reply