Skip to content

wolf88888888/PeriscopeLayout_Music.ly

Repository files navigation

PeriscopeLayout

A layout with animation like Musical.ly

Show effect automatically after 1500ms, and show effects every 5000ms. If you click on PeriscopeLayout, will stop effect.

效果图

Usage

Step One:

    <com.yuri.PeriscopeLayout
        android:id="@+id/periscope"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#000"/>

Step Two:

        final PeriscopeLayout periscopeLayout = (PeriscopeLayout) findViewById(R.id.periscope);
        periscopeLayout.showSymbol(1500, 5000);
        periscopeLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                periscopeLayout.showSymbol();
                periscopeLayout.stop();
            }
        });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages