Android EditText like Google Search EditText

Is there somewhere the code of Google Search in Android? The xml-layout would be enough for me. Or maybe there is a possibility to add a button to the right of the EditText just like adding an icon in the corner? Thanks.


You have a LinearLayout with horizontal orientation where you can have an EditText, an ImageView with the search image and an ImageView for the microphone image. All of them should have the required background images cut in such way in order to seem as one. This is the general notion.

Regarding the source code, I can't help you!

Hope this helps!

        android:background="@drawable/bar"//set back ground for total look
        android:orientation="horizontal" >            
             android:hint="Your hint"
             android:drawableRight="@drawable/search"//give your search icon
             android:background="@drawable/iconSpeak"//icon for speak


Need Your Help

Somehow accidentally mixing TEdit.Text and TLabel.Caption works without exception?

delphi delphi-7 access-violation

I'm working with dynamically creating multiple different types of controls and storing them in a list in the background. Two of such controls are a TEdit and a TLabel. These controls are all sub-co...

Nested class(static inner) lifetime/scope

java nested-class

I declared a Static Inner class, of which I am creating a new instance in a method of Outer class. But, I am getting result suggesting that the same instance of Inner class is used everytime in my

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.