PeriscopeLayout

介绍:

一个类似Periscope点赞效果的Layout

运行效果:

使用说明:

对应的实现文章在这里:一步一步教你实现Periscope点赞效果

Gradle

compile 'me.yifeiyuan.periscopelayout:library:1.0.0'

Maven

<dependency>
<groupId>me.yifeiyuan</groupId>
<artifactId>periscopelayout</artifactId>
<version>library</version>
<type>xml</type>
</dependency>

Eclipse

呵呵

Step One:

    <me.yifeiyuan.library.PeriscopeLayout
        android:id="@+id/periscope"
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:text="Hello World!"
        android:background="#d2d2c9"
        />

Step Two:

        final PeriscopeLayout periscopeLayout = (PeriscopeLayout) findViewById(R.id.periscope);
        periscopeLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                periscopeLayout.addHeart();
            }
        });
已下载
0