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

  • Home
  • SEARCH
  • 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 8523165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:19:50+00:00 2026-06-11T07:19:50+00:00

I have a searchbar below the Action bar. It should be displayed above the

  • 0

I have a searchbar below the Action bar. It should be displayed above the viewpager title strip. But the view pager title strip is overlapping in this. Can anyone point out what am I doing wrong here?

here is my layout.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="match_parent"
        android:layout_height="wrap_content">
<LinearLayout 
        android:id="@+id/search_edit_frame"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="1dip"
        android:layout_marginBottom="-5dip"
        android:orientation="horizontal"
        android:addStatesFromChildren="true"
        android:gravity="center_vertical"
        android:background="@color/searchbar_bg"
        android:baselineAligned="false" >

     <Button 
            android:id="@+id/search_go_btn"
            android:layout_marginLeft="1dip"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@android:drawable/ic_menu_search"
        />
        <EditText
            android:id="@+id/search_src_text"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:layout_weight="5.0"
            android:paddingLeft="8dip"
            android:paddingRight="8dip"
            android:textColorHint="#FFFFFF"
            android:textColor="@color/white"

            android:hint="Search Products or Stores"
            android:singleLine="true" >
            <requestFocus/>
            </EditText>

        <ImageButton android:id="@+id/search_voice_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/ic_btn_speak_now"
        />
    <android.support.v4.view.ViewPager 
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
     tools:context=".HomeActivity">

   <android.support.v4.view.PagerTitleStrip android:id="@+id/pager_title_strip"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom"
    android:background="#CCCC99"       
    android:textColor="#000"
    android:paddingTop="50dp"
    android:paddingBottom="4dp" >   
    </android.support.v4.view.PagerTitleStrip>
   </android.support.v4.view.ViewPager>
   </LinearLayout>
   </LinearLayout>

I have tried splitting searchbar into a separate linearlayout. It doesn’t work well then also.

  • 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-11T07:19:51+00:00Added an answer on June 11, 2026 at 7:19 am

    Try adding android:orientation="vertical" to the top LinearLayout. I think horizontal is the default, and how I understand you want them underneath each other.

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

Sidebar

Related Questions

I have a UI table view with a search bar and it works well
I have a tableview with a search bar. All is working fine but now
I have a UISearchBar below a header-view. This header is 64px hight. If the
i have a file explorer like below : <%@ Page Language=C# AutoEventWireup=true CodeBehind=SearchBar.aspx.cs Inherits=FileExplorer.SearchBar
I have a UISearchbar with delegate method - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { if(searchText.length>3){
I have a search bar. Entering text in it and clicking search takes you
alt text http://img216.imageshack.us/img216/2288/problem11.png As given in the picture, I have an search bar in
I have created a search bar for my website, the user may search a
I have a Controller with a search bar at top, and when the user
I Have site change.is, where right side menu & search bar in header is

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.