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 7701491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:59:54+00:00 2026-05-31T22:59:54+00:00

I have an AutoCompleTextView for which I created a shape which creates a nice

  • 0

I have an AutoCompleTextView for which I created a shape which creates a nice border around the TextView. On my Tablet, I can see the border. With the excact same configuration, I can’t see it on my phone. So… What am I missing?

Here’s my AutoCompleteTextView:

    <AutoCompleteTextView
        android:id='@+id/search'
        android:layout_height='wrap_content'
        android:layout_width='fill_parent'
        android:layout_toRightOf="@id/search_picture"
        android:layout_margin="10dp"
        android:padding="5dp"
        android:completionThreshold="1"
        android:background="@drawable/back"
        android:hint="search..."
        xmlns:android='http://schemas.android.com/apk/res/android'>
    </AutoCompleteTextView>

And here’s the Shape back.xml:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle" >
   <solid android:color="#ffffff" />
   <stroke android:width="2dp" android:color="@color/blue"/>
   <padding android:left="2dp" android:top="2dp" android:right="2dp" android:bottom="2dp" />
</shape>

I found the Shape on Stackoverflow and works usually perfectly.

Thanks for any hints!

  • 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-31T22:59:55+00:00Added an answer on May 31, 2026 at 10:59 pm

    //this will work fine if your remove the ' symbol and put “”

    <AutoCompleteTextView
            android:id="@+id/search"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_toRightOf="@id/search_picture"
            android:layout_margin="10dp"
            android:padding="5dp"
            android:completionThreshold="1"
            android:background="@drawable/back"
            android:hint="search..."
            xmlns:android="http://schemas.android.com/apk/res/android">
        </AutoCompleteTextView>
    

    //in my htc wildfire 2.3 it looks fine

    enter image description here

    //actually I removed the line android:layout_toRightOf="@id/search_picture"
    as I am using Linear layout.

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

Sidebar

Related Questions

I am developing for a tablet using Android 2.2. I have a form which
I have an ArrayAdapter (myAdapter) attached to an AutoCompleteTextView (textView) component. Once the user
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have created an Activity with a AutuCompleteTextView[ACTV] and button. I enter some text
I have successfully implemented my AutoCompleteTextView which is based off an SQLite query and
I have an AutoCompleteTextView and set onItemSelectedListener to it, which does not work. Have
I have an AutoCompleteTextView which works with a list of cities. The list is
I have an EditText (that the user can type numbers in), so when the
I was developing one notepad kind of thing in which user can enter in
I have a list of countries in a database. I have created a select

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.