Note that there are some explanatory texts on larger screens.

plurals
  1. POLayout issue in Android
    primarykey
    data
    text
    <p>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?</p> <p>here is my layout.xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;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" &gt; &lt;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" /&gt; &lt;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" &gt; &lt;requestFocus/&gt; &lt;/EditText&gt; &lt;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" /&gt; &lt;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"&gt; &lt;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" &gt; &lt;/android.support.v4.view.PagerTitleStrip&gt; &lt;/android.support.v4.view.ViewPager&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>I have tried splitting searchbar into a separate linearlayout. It doesn't work well then also.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload