• Stars
    star
    1,226
  • Rank 38,263 (Top 0.8 %)
  • Language
    Java
  • License
    Other
  • Created over 7 years ago
  • Updated about 5 years ago

Reviews

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

Repository Details

Project that demonstrates the entire animation stack present in the Uber app (android)

UberUX

Project that demonstrates the entire animation stack present in the Uber app (android)

Demo

Demo

Libraries

  1. FabProgressCircle
  2. Retrofit
  3. RxAndroid
  4. ButterKnife

Concepts

Transitions - For sharing elements between activities

void startTransition() {

       Intent intent = new Intent(LoginActivity.this, LoginWithPhone.class);

       Pair<View, String> p1 = Pair.create((View) ivBack, getString(R.string.transition_arrow));
       Pair<View, String> p2 = Pair.create((View) ivFlag, getString(R.string.transition_ivFlag));
       Pair<View, String> p3 = Pair.create((View) tvCode, getString(R.string.transition_tvCode));
       Pair<View, String> p4 = Pair.create((View) tvPhoneNo, getString(R.string.transition_tvPhoneNo));
       Pair<View, String> p5 = Pair.create((View) llphone, getString(R.string.transition_llPhone));

       ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, p1, p2, p3, p4, p5);
       startActivity(intent, options.toBundle());


   }

ViewPagerTransformer - For performing animations when ViewPager is swiped

ViewPager.PageTransformer pageTransformer = new ViewPager.PageTransformer() {
        @Override
        public void transformPage(View page, float position) {


            if (position < -1) { 


            } else if (position <= 1) { 

                   // animate here
        
                }

            }
        }
    };

Overlays - For creating overlays on map

 public void addOverlay(LatLng place) {

        GroundOverlay groundOverlay = mMap.addGroundOverlay(new
                GroundOverlayOptions()
                .position(place, 100)
                .transparency(0.5f)
                .zIndex(3)
                .image(BitmapDescriptorFactory.fromBitmap(drawableToBitmap(getDrawable(R.drawable.map_overlay)))));

    }

ValueAnimator - For animating overlays and polylines

ValueAnimator tAnimator = ValueAnimator.ofFloat(0, 1);
       tAnimator.setRepeatCount(ValueAnimator.INFINITE);
       tAnimator.setRepeatMode(ValueAnimator.RESTART);
       tAnimator.setInterpolator(new LinearInterpolator());
       tAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
           @Override
           public void onAnimationUpdate(ValueAnimator valueAnimator) {
              // animate here
           }
       });

PolyLines - For drawing lines on map

 PolylineOptions greyOptions = new PolylineOptions();
        greyOptions.width(10);
        greyOptions.color(Color.GRAY);
        greyOptions.startCap(new SquareCap());
        greyOptions.endCap(new SquareCap());
        greyOptions.jointType(ROUND);
        greyPolyLine = mMap.addPolyline(greyOptions);

How to use this project

Add your GoogleMaps and GooglePlaces key to google_maps_api.xml and turn on direction api from developer console -> You are good to go !

More Repositories

1

Primer

Intro Animation like Google Primer
Java
232
star
2

Insta-Chat

InstaChat offers a new way to read messages of your favourite messengers. It overlays every other app and you can reply from anywhere you want.
Java
116
star
3

MVPandroid

Sample app to demonstrate MVP (Model - View - Presenter) architecture in android
Java
89
star
4

SignUpLogin

Android Implementation of AMLoginSignup(ios) by amirdew
Java
69
star
5

IncorrectPinCodeAnimation

Animation for handling incorrect pin request
Kotlin
38
star
6

CodeSnapshot

This plugin allows you to save your code as an image. By simply selecting your code.
Java
29
star
7

MultiProgressBar

A beautiful, Customizable Android ProgressBar.
Java
10
star
8

ListViewWidget

Add List View to your widget
Java
5
star
9

ComplexRecyclerView

Recycler View with different layout for each row along with custom animations
Java
3
star
10

AapkaSujav

Uses Aadhar Card and allows you to voice your opinion about various issues like cleanliness,condition of roads etc
Java
1
star
11

ListView

List View
Java
1
star
12

WalletTracker

A wallet that takes care of all your Wallets like MobiKwik
Java
1
star
13

Transitions

shared element transitions and animations in android
Java
1
star
14

envoy_discovery

Sample implementation for dynamic configuration of envoy. This project implements EDS API to stream endpoints
Java
1
star
15

ScrollTab

Scroll Tabs
Java
1
star
16

MaterialTabViewPager

Material tabs using android design support library , palettes , pinned toolbar and collapsing imageview
Java
1
star
17

AppIntro

Using AppIntro in Android Studio
Java
1
star