AndroidBeautifulSearch - 一個非常非常漂亮的標題欄搜索動畫
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!