• Stars
    star
    410
  • Rank 101,938 (Top 3 %)
  • Language
    Java
  • Created almost 9 years ago
  • Updated about 8 years ago

Reviews

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

Repository Details

A demo of various animation in latest PlayGames app

PlayAnimations

A demo of various animation in latest PlayGames app using the Transition framework of Android.

Minimum SDK>21. This is not a backport of Transition Framework. This demo works above Lollipop only.

http://blog.naman-dwivedi.in/transition-framework-android

Google Play | Youtube

alt tag

#Usage When launching another activity,specify the views where you want to perform transition and pass it as a bundle. The launching activity and the launched activity should have common views to perform transition on that pair of views.

 Intent intent=new Intent(mContext, DetailActivity.class);
 ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(MainActivity.getInstance(),   Pair.create((View) cover, "cover"));
 mContext.startActivity(intent,options.toBundle());

Specify the attribute android:transitionName="cover" in both the view of two activities.Transition framework will look for the views with same transitionName attribute and will apply the auto transition on them.

We will specify the transition in our theme. Add this attribute to your v21 theme

<item name="android:windowSharedElementEnterTransition">@transition/shared_element</item>

We will define our own custom Transition instead of the default Transition. #####res/transition/shared_element.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- --A set of transitions on two views performed together <!-- -->
<transitionSet
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:transitionOrdering="together"
    android:duration="240">

    <transitionSet   >
    <!-- --A custom transition defined in PlayTransition class <!-- -->
        <transition
            class="com.naman14.playanimations.PlayTransition"/>
        <targets>
         <!-- --We are excluding the second view from the custom transition <!-- -->
            <target android:excludeId="@id/icon" /> />
        </targets>
        </transitionSet>
<!-- --We have left this one upto transition Framework <!-- -->
    <autoTransition/>

</transitionSet>

PlayTransition.java

License

(c) 2015 Naman Dwivedi

PlayAnimations is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this app. If not, see http://www.gnu.org/licenses/.

More Repositories

1

Timber

Material Design Music Player
Java
6,950
star
2

TimberX

Material theme music player that works across all form factors (phones, wear, auto, cast, assistant) and uses latest tools (Kotlin, Architecture components, Room, Databinding)
Kotlin
1,483
star
3

AlgorithmVisualizer-Android

Visualize algorithms and data structures using animations
Java
1,117
star
4

adb-tools-mac

Mac menu bar app for common adb tools
Swift
950
star
5

MaterialPowerMenu

A demo of the power menu with Reveal and other animations
Java
884
star
6

WashingMachineView

An interactive view with water waves flowing like in a Washing machine
Java
362
star
7

PlayNewsStandDemo

Demo app for achieving UI like the one used in latest Google Play Newsstand app.
Java
329
star
8

TAndroidLame

Android/Java wrapper around Lame mp3 encoder
C
249
star
9

Muzei-macOS

Muzei wallpaper app for macOS
Swift
245
star
10

S-Tools

Keep track of your CPU and Sensors alongwith useful features like Color Picker,Compass and device information
Java
196
star
11

Arcade

Neural style in Android
Lua
104
star
12

Hacktoberfest-Android

Android app to check Hacktoberfest status and explore projects and issues
Java
83
star
13

FieldMapView

A demo of MapView as in FieldTrip with smooth animations
Java
82
star
14

Spider

Monitor and modify network requests
Kotlin
80
star
15

gnome-android-tool

Gnome shell extension for adb tools
JavaScript
73
star
16

TerminalScreensaver

OSX screensaver simulating a terminal
Swift
66
star
17

csgolive

CS:GO live scorebot using game state integration
JavaScript
18
star
18

neural-style-android

Torch 7 + Android port of Neural style algorithm
C
11
star
19

Accord

Automated performance monitoring for Android
Kotlin
11
star
20

FaisalCrush

Java
11
star
21

NDKSample

Sample app showing the usage of Android NDK
C++
5
star
22

Armageddon-2014

App for the Annual Tech Week of IET DTU
Java
5
star
23

naman14.github.io

JavaScript
4
star
24

VolumeMediaControl

Control media volume instead of ringer volume for selected apps
Kotlin
4
star
25

timber-cast-receiver

HTML
2
star
26

linux-rog

Kernel patches for asus rog support
C
1
star
27

ethglobal-ny

TypeScript
1
star
28

Spar

Swift
1
star
29

XposedUI

[WIP]
Java
1
star
30

zkbnb-android-sdk

Android SDK for zkbnb APIs
Kotlin
1
star
31

ethglobal-sf

JavaScript
1
star
32

CodingBlocks_CustomViews

Java
1
star
33

AdbToolsElectron

do not look here
CSS
1
star