Skip to content

A custom search bar that draws entirely from the canvas,runs on android studio.

License

Notifications You must be signed in to change notification settings

sshiqiao/Android_SearchBar

Repository files navigation

Android_SearchBar

A custom search bar that draws entirely from the canvas,runs on android studio. Click here for iOS version.

<com.start.searchbardemo.view.SearchBar
        android:id="@+id/search_bar_custom"
        android:layout_marginTop="50dp"
        android:layout_alignParentRight="true"
        android:layout_marginRight="50dp"
        android:layout_width="60dp"
        android:layout_height="60dp"
        android:hint="@string/app_name"
        searchBar:searchbar_background_color="@color/colorWhite"
        searchBar:searchbar_edge_color="@color/colorPrimaryDark"
        searchBar:searchbar_searching_color="@color/colorAccent"
        searchBar:searchbar_stretch="true"
        searchBar:searchbar_stretch_direction="0"
        searchBar:searchbar_stretch_width="250dp"/>
<com.start.searchbardemo.view.SearchBar
        android:id="@+id/search_bar_default"
        android:layout_marginTop="150dp"
        android:layout_marginLeft="50dp"
        android:layout_width="50dp"
        android:layout_height="50dp"
        searchBar:searchbar_stretch_direction="1"
        android:hint="@string/app_name"/>

image

About

A custom search bar that draws entirely from the canvas,runs on android studio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages