All Projects → goyourfly → PaperView

goyourfly / PaperView

Licence: other
PaperView 是一个自定义的View,它就像一张纸折叠和展开

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to PaperView

multi screen layout
A collection of Flutter Widgets that make multi screen user experiences easy to build
Stars: ✭ 75 (+188.46%)
Mutual labels:  fold, flip
Cross-View-Gait-Based-Human-Identification-with-Deep-CNNs
Code for 2016 TPAMI(IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE) A Comprehensive Study on Cross-View Gait Based Human Identification with Deep CNNs
Stars: ✭ 21 (-19.23%)
Mutual labels:  paper
pFedMe
Personalized Federated Learning with Moreau Envelopes (pFedMe) using Pytorch (NeurIPS 2020)
Stars: ✭ 196 (+653.85%)
Mutual labels:  paper
TiDB-A-Raft-based-HTAP-Database
Unofficial! English original and Chinese translation of the paper.
Stars: ✭ 42 (+61.54%)
Mutual labels:  paper
vue-flip-down
vue 翻页倒计时组件 妙啊
Stars: ✭ 90 (+246.15%)
Mutual labels:  flip
LMMS
Language Modelling Makes Sense - WSD (and more) with Contextual Embeddings
Stars: ✭ 79 (+203.85%)
Mutual labels:  paper
heinsen routing
Official implementation of "An Algorithm for Routing Capsules in All Domains" (Heinsen, 2019) in PyTorch.
Stars: ✭ 41 (+57.69%)
Mutual labels:  paper
LayeredSceneDecomposition
No description or website provided.
Stars: ✭ 22 (-15.38%)
Mutual labels:  paper
ShaderView
ShaderView is an Android View that makes it easy to use GLSL shaders for your app. It's the modern way to use shaders for Android instead of RenderScript.
Stars: ✭ 53 (+103.85%)
Mutual labels:  customview
MiniVox
Code for our ACML and INTERSPEECH papers: "Speaker Diarization as a Fully Online Bandit Learning Problem in MiniVox".
Stars: ✭ 15 (-42.31%)
Mutual labels:  paper
ghiaseddin
Author's implementation of the paper "Deep Relative Attributes" (ACCV 2016)
Stars: ✭ 41 (+57.69%)
Mutual labels:  paper
sdn-nfv-papers
This is a paper list about Resource Allocation in Network Functions Virtualization (NFV) and Software-Defined Networking (SDN).
Stars: ✭ 40 (+53.85%)
Mutual labels:  paper
audioContextEncoder
A context encoder for audio inpainting
Stars: ✭ 18 (-30.77%)
Mutual labels:  paper
Text-Summarization-Repo
텍스트 요약 분야의 주요 연구 주제, Must-read Papers, 이용 가능한 model 및 data 등을 추천 자료와 함께 정리한 저장소입니다.
Stars: ✭ 213 (+719.23%)
Mutual labels:  paper
AdversarialAudioSeparation
Code accompanying the paper "Semi-supervised adversarial audio source separation applied to singing voice extraction"
Stars: ✭ 70 (+169.23%)
Mutual labels:  paper
SportPaper
Performance-tuned Minecraft 1.8 spigot server
Stars: ✭ 122 (+369.23%)
Mutual labels:  paper
Awesome-Lane-Detection
A paper list with code of lane detection.
Stars: ✭ 34 (+30.77%)
Mutual labels:  paper
yuanxiaosc.github.io
个人博客;论文;机器学习;深度学习;Python学习;C++学习;
Stars: ✭ 19 (-26.92%)
Mutual labels:  paper
paper-survey
Summary of machine learning papers
Stars: ✭ 26 (+0%)
Mutual labels:  paper
msla2014
wherein I implement several substructural logics in Agda
Stars: ✭ 24 (-7.69%)
Mutual labels:  paper

PaperView

PaperView 是一个自定义的View,它就像一张纸折叠和展开

Demo

1.在普通的布局中使用

2.在RecyclerView中使用

Compile

Download

compile 'com.goyourfly:paperview:latestVersion'

Usage

1.在布局中声明
<com.goyourfly.library.paper_view.PaperView
    android:id="@+id/paperView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="16dp"
    app:paper_bg_color="#fff"
    app:paper_duration="1000">

    <!--展开的布局-->
    <include layout="@layout/item_large" />
    <!--收起的布局-->
    <include layout="@layout/item_small" />

</com.goyourfly.library.paper_view.PaperView>
参数 类型 说明 默认值
paper_duration integer 动画总时长 2000
paper_bg_color color 纸片背景色 #FFF
2.在代码中设置
2.1 展开和折叠
// 折叠卡片
paperView.fold(animator:Boolean,changed:Boolean)

// 展开卡片
paperView.unfold(animator:Boolean,changed:Boolean)
2.2 监听状态变化
paperView.setStateChangedListener(object:PaperView.OnFoldStateChangeListener{
	// 折叠
    override fun onFold() {}
	// 展开
    override fun onUnfold() {}
})

License

Copyright 2017-present, GaoYufei
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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].