All Projects → Trumeet → Animations

Trumeet / Animations

Licence: Apache-2.0 License
Beautiful animations from AOSP

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Animations

android-prefix-suffix-edit-text
EditText with support for non editable prefix and suffix.
Stars: ✭ 36 (+2.86%)
Mutual labels:  view
MessagesView
view for displaying messages similarly to messages iOS system app
Stars: ✭ 16 (-54.29%)
Mutual labels:  view
FastBanner
🔥快速轮播图,支持自定义布局和使用自有图片显示组件
Stars: ✭ 27 (-22.86%)
Mutual labels:  view
device xiaomi begonia
Dependency of Xiaomi Redmi Note 8 Pro (begonia)
Stars: ✭ 26 (-25.71%)
Mutual labels:  aosp
VerifyBlocksView
Android view for providing blocks (Edit Texts) to achieve verification process.
Stars: ✭ 28 (-20%)
Mutual labels:  view
echo-template
golang template for echo framework!
Stars: ✭ 39 (+11.43%)
Mutual labels:  view
TextBanner
搜索栏文字轮播切换控件,京东淘宝头条资讯轮播
Stars: ✭ 35 (+0%)
Mutual labels:  view
contributer
Inject all types like views or a conductor controllers with @ContributesAndroidInjector
Stars: ✭ 39 (+11.43%)
Mutual labels:  view
TitleBar
🔥空祖家的标题栏组件
Stars: ✭ 36 (+2.86%)
Mutual labels:  view
recycler-adapter
RecyclerView-driven declarative UIs
Stars: ✭ 124 (+254.29%)
Mutual labels:  view
react-native-super-ellipse-mask
Apple flavored smooth corners for React Native
Stars: ✭ 55 (+57.14%)
Mutual labels:  view
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+31.43%)
Mutual labels:  view
kzmonitor
kafka zookeeper monitor
Stars: ✭ 34 (-2.86%)
Mutual labels:  view
SwiftUIViewRecorder
Efficiently record any SwiftUI View as image or video
Stars: ✭ 20 (-42.86%)
Mutual labels:  view
RoundProgressBar
一个自定义的圆形可颜色渐变的ProgressBar
Stars: ✭ 32 (-8.57%)
Mutual labels:  view
android-constraintlayout-demo
Demo usage of various ConstraintLayout features
Stars: ✭ 49 (+40%)
Mutual labels:  view
react-native-PixelsCatcher
👀 Library for UI snapshot testing of React Native
Stars: ✭ 99 (+182.86%)
Mutual labels:  view
SlideTable
可以滑动 以表格形式展示数据
Stars: ✭ 14 (-60%)
Mutual labels:  view
KoHighlights
KOHighlights is a utility for viewing KOReader's highlights and/or export them to simple text, csv or html files.
Stars: ✭ 62 (+77.14%)
Mutual labels:  view
YoutubeVideoSample
YoutubeVideoSample
Stars: ✭ 176 (+402.86%)
Mutual labels:  view

Animations

Beautiful animations from AOSP

依賴

  • Add it in your root build.gradle at the end of repositories:
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  • 查詢最新版本

當前最新版本號:

  • 添加依賴
    dependencies {
	        compile 'com.github.AndroidSnippet:Animations:<最新版本號>'
	}

Usage

Fingerprint isolated animation

設置 -> 安全性 -> 指紋 -> 新增指紋 中間的指紋圖標動畫

來自 platform_packages_apps_settings/FingerprintEnrollEnrolling.java

FingerprintIsloated

<android.support.v7.widget.AppCompatImageView
            android:id="@+id/fingerprint_animator"
            android:layout_width="@dimen/fingerprint_animation_size"
            android:layout_height="@dimen/fingerprint_animation_size"
            app:background="@drawable/fp_illustration_enrollment"
            app:backgroundTint="@color/fingerprint_indicator_background_resting"
            />

Set up animation:

LoopAnimatedVectorDrawableCompat mFingerprintAnimator = new LoopAnimatedVectorDrawableCompat(AnimatedVectorDrawableCompat.create(this,
                                                                      R.drawable.enrollment_fingerprint_isolated_animation));
fingerprintIsolated.setImageDrawable(mFingerprintAnimator.getDrawable());

Set background image:

fingerprintIsolated.setBackgroundDrawable(AppCompatResources.getDrawable(MainActivity.this
                , top.trumeet.snippet.aospanimation.library.R.drawable.fp_illustration_enrollment));
fingerprintIsolated.setSupportBackgroundTintList(ColorStateList.valueOf(getResources().getColor(top.trumeet.snippet.aospanimation.library.R.color.fingerprint_indicator_background_resting)));

開始動畫: mFingerprintAnimator.startIconAnimation()

停止動畫: mFingerprintAnimator.stopIconAnimation()

Appear / Disappear Animation

設置 中 確認密碼時的進入/退出動畫

Activity 位於:ConfirmLockPattern

AppearAnimation

使用方法:參照 Demo AppearAnimationActivity

startAnimation2d的第一個參數 T[][] 是可以傳入 X行X列 的二維數組,比如説 TableLayout。詳見 Demo

Licenses

使用本項目請確保您遵守 Apache License 2.0

Copyright (C) 2017 AndroidSnippet

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.
Copyright (C) 2015 The Android Open Source Project

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].