Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4065430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:58:54+00:00 2026-05-20T15:58:54+00:00

I am using an AutoCompleteEditText and I want to make it appearance as But

  • 0

I am using an AutoCompleteEditText and I want to make it appearance as enter image description here

But I don’t know how it will be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:58:55+00:00Added an answer on May 20, 2026 at 3:58 pm

    The general way to do this is by using 9-patch more info here http://developer.android.com/guide/developing/tools/draw9patch.html. But in this case you can use simpler solution.

    in your main layout

    <RelativeLayout android:layout_width="fill_parent"
        android:id="@+id/searchfieldlayout" android:layout_height="46dp"
        android:background="#0000ff">
        <RelativeLayout android:layout_width="fill_parent"
            android:layout_height="32dp" android:layout_centerInParent="true"
            android:layout_marginLeft="7dp" android:layout_marginRight="7dp"
            android:background="@drawable/search_gradient">
            <ImageView android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/search_icon"
                android:layout_alignParentLeft="true" android:layout_centerVertical="true"
                android:layout_marginLeft="10dp" android:background="@drawable/search_icon">
            </ImageView>
            <EditText android:layout_width="fill_parent" android:id="@+id/searchfield"
                android:paddingTop="5dp" android:textSize="13dp" android:textColor="#ffffffff"
                android:selectAllOnFocus="true" android:paddingRight="10dp"
                android:paddingBottom="5dp" android:paddingLeft="10dp"
                android:layout_height="fill_parent" android:layout_toRightOf="@+id/search_icon"
                android:background="@drawable/transparent_background"
                android:layout_marginLeft="7dp" android:inputType="text" android:imeOptions="actionGo">
             </EditText>
        </RelativeLayout>
    </RelativeLayout>
    

    search_gradien.xml

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">
        <gradient android:startColor="#2b0139" android:endColor="#3e1550"          android:angle="270" />
        <corners android:radius="6dp" />
    </shape>
    

    transparent_background.xml

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">
        <gradient android:startColor="#00000000" android:endColor="#00000000"
            android:angle="270" />
    </shape>
    

    fix your colors or dimensions if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Yii MVC, I want to know when a user is still on my
Using C#, I want to show the image in the Access column but failed
Using RSpec, is there a way to compare two hashes where I don't know
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using range() in Underscore I can make something like this: _.range(10); >> [0, 1,
Using jQuery I'm trying to obtain the rotation state of an object but in
Using knockoutjs mapping plugin is it possible to only make the child elements observables?
Using C# How can I show a document in richtextbox without scrollbars, But I
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
Using batch script, I want to get a first token of a line delimited

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.