• Stars
    star
    272
  • Rank 151,235 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A layout with animation like Periscope's

PeriscopeLayout

A layout with animation like Periscope's

一个类似Periscope点赞效果的Layout,效果如下:

效果图

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

Add dependency

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

呵呵

Usage

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

Contributors

junyuecao

License

Copyright (C) 2015, 程序亦非猿
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

Android-Resources

优秀的Android资源收集与整理
379
star
2

PracticeDemo

@DEPRECATED 个人练习项目,记录成长之路
Java
328
star
3

Flap

Enhance RecyclerView and Adapter and ViewHolder. Make them much more powerful and easier to use.
Kotlin
286
star
4

Pandora

潘多拉的魔盒了解一下。
Java
252
star
5

AndFixDemo

a demo for AndFix (AndroidStudio)
Java
205
star
6

FullStackNotes

我想做个全栈,这是我成长之路的笔记。——2019.05.22
Java
103
star
7

ReadingNotes

记录一些书籍的比较,阅读心得,在加上自己的看法
91
star
8

OnePiece

OnePiece Of Android
Kotlin
59
star
9

Alibaba-Nei-Tui-Guide

🔥🔥《阿里巴巴内推指南》🔥🔥
58
star
10

Android-Skill-Map

Android 技能谱
29
star
11

CrashCatcher

捕获crash,存入本地文件~
Java
17
star
12

StudyNotes

Merged to OnePiece https://github.com/AlanCheen/OnePiece
17
star
13

TalkAboutApk

Java
11
star
14

Awesome-Flutter

迁移至https://github.com/HeadFirstAndroid/HeadFirstAndroidIndex
11
star
15

Climb

练习之作
Java
8
star
16

LearnDataBinding

Java
7
star
17

Android-API-Guide-zh-cn

Android-API 官方翻译 搬运整理版
6
star
18

DesignPattern

关于设计模式的学习/写作的练习代码
Java
6
star
19

OkHttpDownLoadDemo

带进度的okhttp下载文件demo
Java
6
star
20

AndroidDebugHelper

Kotlin
4
star
21

HeadFirstAndroidIndex

索引
Kotlin
4
star
22

DexposedDemo

利用Dexposed 修改 IMEI
Java
4
star
23

Stair

Java
3
star
24

HeadFirstWeb

学一下前端。
HTML
3
star
25

MasteringAndroid

尝试下 Android 新技术
Kotlin
3
star
26

MacTools

mac apps
2
star
27

posts

hexo blog backup
2
star
28

FaceDetection

a demo of face detection
Java
2
star
29

Awesome-PageTransformer

PageTransformers for ViewPager
Java
2
star
30

Utils

已废弃,更新请看:https://github.com/AlanCheen/Pandora
Java
2
star
31

HelloWeex

Java
1
star
32

as-setting-backup

AndroidStudio 配置备份
1
star
33

alancheen.github.io

my blog
HTML
1
star
34

UnderstandingAndroid

在实践中理解 Android
Java
1
star
35

OhMyEnglish

Improve your English
1
star
36

helloweb

HTML
1
star