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

         

类似的还有....
EtsyBlur EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.
android-movies-demo android-movies-demo
animate An application demoing meaningful motion on Android
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'
}