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" /> 
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
Post a Comment