Last active
December 5, 2017 11:02
-
-
Save bullheadandplato/3764efc94e5742fea75584dd3d45442c to your computer and use it in GitHub Desktop.
search bar like skype android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
xmlns:local="http://schemas.android.com/apk/res-auto"> | |
<android.support.v7.widget.Toolbar | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:minHeight="?attr/actionBarSize" | |
android:id="@+id/toolbar" | |
local:popupTheme="@style/ThemeOverlay.AppCompat.Light" | |
local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@null" | |
android:id="@+id/search_edit_text" | |
android:hint="Search" | |
android:textColor="@color/white" | |
android:textColorHint="#BDBDBD" | |
android:padding="0dp" | |
android:textSize="20sp" | |
android:imeOptions="actionSearch" | |
android:layout_margin="16dp" | |
android:inputType="text" | |
android:maxLines="1" | |
/> | |
</android.support.design.widget.AppBarLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment