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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:47:19+00:00 2026-06-01T09:47:19+00:00

I have an AutoCompleteTextView and an indeterminate progress bar in a relative layout. The

  • 0

I have an AutoCompleteTextView and an indeterminate progress bar in a relative layout.
The problem I now have is that if text displayed is long enough, it is put in the background of the progress bar.

How can I prevent this?

This is the relevant xml code:

  <RelativeLayout
        android:id="@+id/AddressContainer"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_toLeftOf="@id/SearchBtn"

     >

    <AutoCompleteTextView
        android:id="@+id/SearchField"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:lines="1"
        android:singleLine="true"
        android:layout_marginRight="2dp"
        android:layout_marginLeft="2dp"
        android:layout_marginTop="2dp"
        android:layout_marginBottom="0dp"
        >
    </AutoCompleteTextView>

    <ProgressBar
        android:id="@+id/progressBar1"
        style="@style/Widget.ProgressBar.Medium"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:paddingRight="8dp"
         />
</RelativeLayout>

Link to an image showing the problem

  • 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-06-01T09:47:20+00:00Added an answer on June 1, 2026 at 9:47 am

    Try this changes so the AutoCompleteTextView and ProgressBar` don’t overlap:

     <RelativeLayout
            android:id="@+id/AddressContainer"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_toLeftOf="@id/SearchBtn"
         >
    
        <ProgressBar
            android:id="@+id/progressBar1"
            style="@style/Widget.ProgressBar.Medium"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:paddingRight="8dp"
             />
    
        <AutoCompleteTextView
            android:id="@+id/SearchField"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_toLeftOf="@id/progressBar1"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:lines="1"
            android:singleLine="true"
            android:layout_marginRight="2dp"
            android:layout_marginLeft="2dp"
            android:layout_marginTop="2dp"
            android:layout_marginBottom="0dp"
            >
        </AutoCompleteTextView>
    
    
    </RelativeLayout>
    

    Edit:

    Now I’ve seen that picture, if you want the text to not go under the ProgressBar simply add some right padding to your AutoCompleteTextView like:

    android:paddingRight="55dp">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Autocompletetextview field. The problem is that in portrait view, in addition
Have a matrix report now that has Position, Hours and Wages for a location
I have an Activity with an AutoCompleteTextView and a ListView with an adapter that
I have searched a long time and cannot find a solution to my problem.
I am developing an android application. I have an autocompleteTextView in my layout. I
I have a layout with an AutoCompleteTextView and when click on it to write
I have this layout, <TableLayout android:stretchColumns=0 android:layout_width=fill_parent android:layout_height=wrap_content> <TableRow> <AutoCompleteTextView android:id=@+id/StationTextView android:layout_width=fill_parent android:layout_height=wrap_content android:completionThreshold=2
In my activity, I have an AutoCompleteTextView that gets its contents from my custom
I have an ArrayAdapter (myAdapter) attached to an AutoCompleteTextView (textView) component. Once the user
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css

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.