Skip to content

Instantly share code, notes, and snippets.

@rhlmshr
Created November 8, 2017 12:38
Show Gist options
  • Save rhlmshr/8a3d79a98d8ea5f1ed2c9d0ac9b45475 to your computer and use it in GitHub Desktop.
Save rhlmshr/8a3d79a98d8ea5f1ed2c9d0ac9b45475 to your computer and use it in GitHub Desktop.

JJSearchViewAnim

中文版文档及相关文章

Android Arsenal

####A cool search view animation library ,I hope you like it.

###look

Design Demo Designer Class
Nick JJDotGoPathController
Oleg Frolov JJAroundCircleBornTailController
sandeep virk JJBarWithErrorIconController
Jurre Houtkamp JJScaleCircleAndTailController
Rahul Bhosale JJChangeArrowController
Nicolás J. Engler JJCircleToLineAlphaController
Boris Kirov JJCircleToBarController
Anish Chandran JJCircleToSimpleLineController
Antonio Di Nardo MaterialSearchView
* The last effect you can find here:[MaterialSearchView](https://github.com/android-cjj/MaterialSearchView)

###Usage

(1) In your build.gradle

  • Add it in your root build.gradle at the end of repositories:
allprojects {
   repositories {
      ...
      maven { url 'https://jitpack.io' }
   }
}
  • Add the dependency
dependencies {
   compile 'com.github.mohsen-dl:JJSearchViewAnim:1.0.0'
}

(2) In xml

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.cjj.jjsearchviewanim.MainActivity">

    <com.cjj.sva.JJSearchView
        android:id="@+id/jjsv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
 </RelativeLayout>

(3) In java

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        JJSearchView mJJSearchView = (JJSearchView) findViewById(R.id.jjsv);
        mJJSearchView.setController(new JJChangeArrowController());
    }

(4) Setting

mJJSearchView.startAnim();
mJJSearchView.resetAnim();

####Thanks:

http://www.materialup.com/posts/search-0c73a055-dcc9-486f-8540-f9517204edf8

http://www.materialup.com/posts/search-bar-concept

http://www.materialup.com/posts/search-inspiration

http://www.materialup.com/posts/search

http://www.materialup.com/posts/search-input-focus-animation

http://www.materialup.com/posts/material-search

http://www.materialup.com/search?q=search

http://www.materialup.com/posts/css3-jquery-material-design-close-animation

####About me A low-level android software development engineer, like watching cartoons, like playing football, love life ! If you want to make friends with me, You can email tell me.Email address: [email protected].

License

The MIT License (MIT)

Copyright (c) 2016 android-cjj

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment