Skip to content

shiqizhenyes/AndroidBeautifulSearch

 
 

Repository files navigation

#AndroidBeautifulSearch ##转载自原文 DribSearch android search to line anim dribbble 上有许多创意的效果 这个控件的效果就是dribble上的一个实现 地址在这里 gist之前也有人贴出android 5.0的实现方式,解析矢量图然后通过path动画的实现, 地址在这里, 当然5.0以下肯定也是可以的, 这个控件就是在2.3+ 的实现方式

效果图: 效果图 avi转gif 质量不是很好, 凑合着看吧 使用:

<org.liuyichen.dribsearch.DribSearchView
    android:id="@+id/dribSearchView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="18dp"
    android:paddingBottom="18dp"
    app:breadth="2"
    app:search_color="#fff"/>
    
    


    
dribSearchView = (DribSearchView) findViewById(R.id.dribSearchView);

dribSearchView.changeLine();

dribSearchView.changeSearch();

License

Copyright 2015 liuyichen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

一个非常非常漂亮的标题栏搜索动画

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%