android - Size of tool bar very large when input text? -


i follow tutorial make material sliding tab, working fine. problem comes when edittext got focused , started type text in edittext toolbar occupy whole screen .

code tool_bar.xml

<?xml version="1.0" encoding="utf-8"?>     <android.support.v7.widget.toolbar     android:layout_height="match_parent"     android:layout_width="match_parent"     android:background="@color/colorprimary"     android:elevation="2dp"     android:theme="@style/base.themeoverlay.appcompat.dark"     xmlns:android="http://schemas.android.com/apk/res/android" /> 

enter image description here

change toolbar.xml follows

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar     android:layout_height="?attr/actionbarsize"     android:layout_width="match_parent"     android:background="@color/colorprimary"     android:elevation="2dp"     android:theme="@style/base.themeoverlay.appcompat.dark"     xmlns:android="http://schemas.android.com/apk/res/android" /> 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -