A Toggling Add/Remove button

Min SDK   15
Latest Commit   2016-02-27 03:37:59
License   unknown

Github   https://github.com/cdflynn/crossview

         

标签

使用APP客户端扫描二维码运行Demo


...

cdflynn
None
Minneapolis


Mobile Software

         

类似的还有....
AppIntroAnimation AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations.
DynamicAnimationExample A simple spring animation (support library v25.3.0+) example android app
Android-Anim-Playground Latest animation ideas I developed to make apps more attractive
README

README.md

Cross View

Release

Sample App

Action Bar

Add a CrossView to your layout

    <cdflynn.android.library.crossview.CrossView
        android:id="@+id/sample_cross_view"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:padding="14dp"
        android:background="@drawable/cross_view_selector"
        app:lineColor="@android:color/black"/>

Note that you can define the color with lineColor

toggle in code:

    private final View.OnClickListener mCrossViewClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            mCrossView.toggle();
        }
    };

You can also set a state directly:

mCrossView.plus();
mCrossView.cross();

Optionally supply an animation duration in milliseconds

mCrossView.cross(0l);
mCrossView.toggle(150l);
mCrossView.plus(200l);

Install

You can install using gradle:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.cdflynn:crossview:v1.0.1'
}