All Projects β†’ Taishi-Y β†’ Instagramlikecolortransitionandroid

Taishi-Y / Instagramlikecolortransitionandroid

Licence: mit
How to create instagram like Gradient color transition in android.πŸ“Έ

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Instagramlikecolortransitionandroid

Akgpushanimator
Easily Push and Pop viewcontroller like Instagram App with Interaction
Stars: ✭ 44 (-92.49%)
Mutual labels:  instagram, transition
Flowing Gradient
Android Library to make a flowing gradient effect, similar to that used in Instagram Android login screen
Stars: ✭ 701 (+19.62%)
Mutual labels:  instagram, transition
Insta Mass Account Creator
Instagram Auto Account Creation Bot
Stars: ✭ 452 (-22.87%)
Mutual labels:  instagram
Instagram Scraper
Scrapes an instagram user's photos and videos
Stars: ✭ 5,664 (+866.55%)
Mutual labels:  instagram
Suspensionbar
A RecyclerView suspension bar implementation like Instagram
Stars: ✭ 494 (-15.7%)
Mutual labels:  instagram
Photo Editor Android
Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories.
Stars: ✭ 463 (-20.99%)
Mutual labels:  instagram
Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (-15.02%)
Mutual labels:  instagram
React Native Vision Camera
πŸ“Έ The Camera library that sees the vision.
Stars: ✭ 443 (-24.4%)
Mutual labels:  instagram
Holehe
holehe allows you to check if the mail is used on different sites like twitter, instagram and will retrieve information on sites with the forgotten password function.
Stars: ✭ 568 (-3.07%)
Mutual labels:  instagram
Rssbox
πŸ“° I consume the world via RSS feeds, and this is my attempt to keep it that way.
Stars: ✭ 492 (-16.04%)
Mutual labels:  instagram
Photobrowser
A simple iOS Instagram photo browser written in Swift using Alamofire networking library, SwiftyJSON JSON parsing library and FastImageCache storing and retrieving images library.
Stars: ✭ 533 (-9.04%)
Mutual labels:  instagram
Collection View Layouts
A library that implements custom flow layouts for iOS apps
Stars: ✭ 491 (-16.21%)
Mutual labels:  instagram
Instainsane
Multi-threaded Instagram Brute Forcer (100 attemps at once)
Stars: ✭ 475 (-18.94%)
Mutual labels:  instagram
Chromeigstory
Chrome extension that lets you view your friend's Instagram Stories in the browser.
Stars: ✭ 502 (-14.33%)
Mutual labels:  instagram
Aasm
AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
Stars: ✭ 4,474 (+663.48%)
Mutual labels:  transition
Alerttransition
AlertTransition is a extensible library for making view controller transitions, especially for alert transitions.
Stars: ✭ 565 (-3.58%)
Mutual labels:  transition
Ffmpeg Concat
Concats a list of videos together using ffmpeg with sexy OpenGL transitions.
Stars: ✭ 451 (-23.04%)
Mutual labels:  transition
Instagramapisharp
A complete Private Instagram API for .NET (C#, VB.NET).
Stars: ✭ 486 (-17.06%)
Mutual labels:  instagram
Instagram
An easy-to-use and simple Instagram package
Stars: ✭ 496 (-15.36%)
Mutual labels:  instagram
Instagram
The first Instagram website and lightweight API HTTP client
Stars: ✭ 581 (-0.85%)
Mutual labels:  instagram

InstagramLikeColorTransition

Android Arsenal

δΈ­ζ–‡η‰ˆ by zhaoweih

How to create instagram like Gradient color transition in android.

1. Create some gradient color drawables inside drawable Folder.

color1.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:startColor="#614385"
        android:endColor="#516395"
        android:angle="0"/>
</shape>

color2.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:startColor="#5f2c82"
        android:endColor="#49a09d"
        android:angle="45"/>
</shape>

color3.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:startColor="#4776E6"
        android:endColor="#8E54E9"
        android:angle="90"/>
</shape>

color4.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:startColor="#7141e2"
        android:endColor="#d46cb3"
        android:angle="135"/>
</shape>

2. Create animation list using the above created gradient colors, animation_list.xml, inside drawable folder

<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:drawable="@drawable/color1"
        android:duration="10000" />
    <item
        android:drawable="@drawable/color2"
        android:duration="10000" />
    <item
        android:drawable="@drawable/color3"
        android:duration="10000" />
    <item
        android:drawable="@drawable/color4"
        android:duration="10000" />
</animation-list>

3. Apply the animation_list created above as a background to the top view of your activity layout.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@drawable/animation_list"
    android:id="@+id/container">

    <!-- Child Views -->

</LinearLayout>

4. Inside your activity use AnimationDrawable to apply the transition.

LinearLayout container = (LinearLayout) findViewById(R.id.container);

AnimationDrawable anim = (AnimationDrawable) container.getBackground();
anim.setEnterFadeDuration(6000);
anim.setExitFadeDuration(2000);

// Starting animation:- start the animation on onResume.
@Override
protected void onResume() {
    super.onResume();
    if (anim != null && !anim.isRunning())
        anim.start();
}
      
// Stopping animation:- stop the animation on onPause.
@Override
protected void onPause() {
    super.onPause();
    if (anim != null && anim.isRunning())
        anim.stop();
}

Make statusbar transparent

values/styles.xml

<resources>  
    <style name="Theme.AppTheme.TranslucentStatusBar" parent="Theme.AppCompat.Light.NoActionBar" />  
</resources>  

values-v19/styles.xml

<resources>  
    <style name="Theme.AppTheme.TranslucentStatusBar" parent="Theme.AppCompat.Light.NoActionBar">  
        <item name="android:windowTranslucentStatus">true</item>  
    </style>  
</resources> 

values-v21/styles.xml

<resources>  
    <style name="Theme.AppTheme.TranslucentStatusBar" parent="Theme.AppCompat.Light.NoActionBar">  
        <item name="android:statusBarColor">@android:color/transparent</item>  
    </style>  
</resources>  

values-v23/styles.xml

<resources>  
    <style name="Theme.AppTheme.TranslucentStatusBar" parent="Theme.AppCompat.Light.NoActionBar">  
        <item name="android:statusBarColor">@android:color/transparent</item>  
        <item name="android:windowLightStatusBar">true</item>  
    </style>  
</resources> 
public class MainActivity extends AppCompatActivity {  
  
    @Override  
    protected void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);  
  
        // Add below code
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {  
            findViewById(android.R.id.content).setSystemUiVisibility(  
                    View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);  
        }  
  
        setContentView(R.layout.activity_splash);  
    }  
}  
<activity  
    android:name=".MainActivity"  
    android:theme="@style/Theme.AppTheme.TranslucentStatusBar" /> 
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].