Search interface for Android application - android

I have currently implemented the search interface in Android using the dialog box. However, I need to change this and place the search edit elsewhere in the app. By default the search dialog is at the very top of the application, and it has to move. Now I see in the documentation: http://developer.android.com/guide/topics/search/search-dialog.html it says there is a Widget option with Android 3.0+ however, I still need to support Android 2.1, 2.2
So I would like to use the Android search interface with its advantages like voice search etc, but how can I put the search edit box somewhere other than the very top, and still be compliant for Android 2.1, 2.2?

Related

How to add an overlay on widget on android auto

I'm looking into Android APIs in order to understand how to add an overlay widget to Andoid Auto but to no avail.
I'm not willing to add the widget on the main phone's screen but on the car display/head unit: my purpose is to write a simple widget which overlays the android auto bottom bar and adds a very readable clock (since the embedded one is really small!!!).
I've looked into existing tools for this to no avail and can't even find any hint if this is even possible using the APIs to target specifically the second screen used by AndroidAuto.
The reasonable starting point might be the WindowManager with appropriate LayoutParameters but this does not seem to be the right way.
Any hint?
Android Auto is designed to help minimize distraction so drivers can focus on the road. This means you can't do much, unless you have access to the full Android Auto SDK. Currently, only some big companies have access to the official SDK. There's also an unofficial SDK that allows you to make your own custom apps, but since version 3.0 Android Auto no longer supports launching custom apps.

movable icon for Edit box in android using delphi

I'm using Delphi 10.1 Berlin for developing mobile application and when I have used the Edit box in android, I'm not getting the text movable icon in Edit box. How can I enable this to move the text in edit box for Android mobile and for iOs mobile app. With this I have attached the snap shot of the sample which I required. And also Copy, Paste, Select All options are also not displaying in edit Box. Please help me to resolve this issue. And thanks in advance.
FireMonkey controls are not Android controls so do not get the standard Android features of the equivalent controls. You will need to either find a 3rd party control that implements an equivalent capability or implement it yourself.
Otherwise you will have to wait until Embarcadero get around to supporting native controls on Android. This is on the roadmap for 2018, but bear in mind that this is no guarantee that it will actually be delivered in that timeframe.

Icon Next to the Search Orb in Android TV App

How can I add an icon next to the search orb, just as displayed below? I'd like to display a login page when the user clicks on the icon.
You can't, if you want to use the standard widgets offered by the Leanback library, such as BrowseFragment.
There is a way of creating your own version of the BrowseFragment widget, so that it is fully customizable and you can add as many buttons as you like, but it is definitely not easy to do. I've written a series of posts on this subject, which you can find here:
Building for Android TV
There is also a demo project that already gives you a starting point for the custom interface. The code can be found on this GitHub repo (episode_4 is probably what you're looking for).

Search style EditText

I would like to use the "search" style EditText, with the thin line underneath and a microphone icon on the right (although I would replace that icon with a different function), used in apps like Youtube and Google maps.
Is this a native element of this in any versions of Android? I can't seem to find a reference to it anywhere, although I did find this:
Android EditText like Google Search EditText
Which basically says to create it yourself, which I've done, however if there's a more "native" search EditText I'm unaware of, I'd rather use that...
Thanks for your help.
If you want to have this Search-EditText inside of an app, here you will find all information needed:
http://developer.android.com/guide/topics/search/index.html
Google provides configuration examples for both Android 2.X without ActionBar and later Androids with ActionBar. Under "Creating a Search Interface" you will find the section "Adding Voice Search" which brings in the microphone icon, though I don't know how to override its functionality.

Google's global quick search widget missing in Android 2.2

I was unable to find the google's search widget on the home screen
neither on the the list of available widgets.If i click menu from the
home screen and if i press search nothing happens.
I could neither find an option called "Search" in settings page from
where i could enable my application in searchable items.The issue is
we have enabled Global search for our application and previously if
used to show search results from my application if i search here.
I tested this in a stimulator and i am yet to test it on a device.
Has it been removed in 2.2?
This was a bug in Android SDK 2.2 which was later confirmed by a Google employee in a separate post
Android 2.2 AVD: no Quick Search Box?

Categories

Resources