android - Modifying Toolbar to add new row -


i'm in process of learning how create toolbar. have searched many areas couldn't find how modify toolbar i'll have 2 rows. 1st row navigation , title. 2nd row search bar

example:

enter image description here

i did it. removed searchview menu , put main layout. layout xml looks this:

<linearlayout     android:layout_height="match_parent"     android:layout_width="match_parent"     android:orientation="vertical">      <include         android:id="@+id/tool_bar"         layout="@layout/toolbar_home" />      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:background="@color/colortoolbar"         android:paddingbottom="16dp"         android:elevation="4dp">          <android.support.v7.widget.searchview             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_marginright="16dp"             android:layout_marginleft="16dp"             android:id="@+id/main_home_search"             android:background="@color/searchbackgroundcolor"             android:focusable="false"             app:queryhint="@string/main_home_search"             app:querybackground="@android:color/transparent"             app:iconifiedbydefault="false"             />      </linearlayout>      <include layout="@layout/activity_main_home_content" />  </linearlayout> 


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -