android - how adding spinner on the toolbar below the toolbar title? -
i everybody,
i'm developping android app , i'd add spinners (contains in layout) on toolbar, below toolbar title samsung "call log" menu :
https://drive.google.com/file/d/0b1pgazzf7cp4be4zqllrnzfldvu/view?usp=sharing
samsung add 3 horizontal tab below toolbar title "journal".
so app :
https://drive.google.com/file/d/0b1pgazzf7cp4cwppd0y5mlbhtfu/view?usp=sharing
i'd add layout (pink rectangle) on yellow toolbar, intention of using hiding toolbar scrolling in futur.
toolbar , layout xml :
<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:popuptheme="@style/appthemeaccueiltoolbar" android:theme="@style/appthemeaccueiltoolbar" android:id="@+id/toolbaraccueil" android:layout_width="match_parent" android:layout_height="wrap_content" android:minheight="?attr/actionbarsize" android:elevation="@dimen/toolbarelevation" android:layout_margintop="@dimen/appbartopmargin" > </android.support.v7.widget.toolbar> <linearlayout android:id="@+id/spinnerlayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:weightsum="99" android:layout_below="@+id/toolbaraccueil"> <spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/accueilanneespinner" android:gravity="center" android:layout_weight="33" /> <spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/accueilspinner" android:gravity="center" android:layout_weight="33" /> <spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/accueilmatierespinner" android:gravity="center" android:layout_weight="33" /> </linearlayout>
Comments
Post a Comment