JJSearchViewAnim

介绍:

一个炫酷的SearchView搜索动画库

运行效果:

使用说明:

DesignDemoDesignerClass
NickJJDotGoPathController
Oleg FrolovJJAroundCircleBornTailController
sandeep virkJJBarWithErrorIconController
Jurre HoutkampJJScaleCircleAndTailController
Rahul BhosaleJJChangeArrowController
Nicolás J. EnglerJJCircleToLineAlphaController
Boris KirovJJCircleToBarController
Anish ChandranJJCircleToSimpleLineController
Antonio Di NardoMaterialSearchView

(1)在布局文件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"/>

 

(2) 在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());
    }

(3)设置动画开启及恢复

mJJSearchView.startAnim();
mJJSearchView.resetAnim();
已下载
0