How to design UI for background animation like in Instragram’s sign up page with the XML Drawable and Transition and Java language in Android Studio.
My lovely app to work:
Wireframing:
– Mockplus: www.mockplus.com/?r=grace
– Pen and Book
– Balsamiq: www.balsamiq.com
User-Interface Designing
– Sketch App: www.sketchapp.com
– Gravit Designer: www.designer.io
Prototyping
– Flinto: www.flinto.com
– Marvelapp: www.marvelapp.com
– Invision: www.invisionapp.com
Collaborating
– Zeplin
– Abstract App
Communication
– Slack: www.slack.com
– Skype: www.skype.com
– Telegram: www.telegram.org
Task Management
– Basecamp: www.basecamp.com
– Trello: www.trello.com
– GetHarvest: www.getharvest.com
Development
– Sublime Text: www.sublimetext.com
– Android Studio
– XCode
—
Take My Course:
udemy.com/user/angga-risky
My Portfolio:
dribbble.com/anggarisky
behance.net/anggarisky
My Site:
anggarisky.com
garudapixel.com
Connect Me:
fb.me/anggariskys
instagram: anggarsky
27 Comments
very imp tutorial ………..nice thank you so much
wow
Thanks very much you save my day
you are the best.
Kak Angga ini Android studio yang versi berapa ya??
Great tutorial thank you very much … It is exactly what i needed to bring my apps to the next level, I am a student and its hard to find good practical tutorials ………… Thanks again : )
shit, i dont even know u and I'm proud
Awesome man! Thank you!
i keep having error when i use relative layout ""Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.widget.RelativeLayout.getBackground()' on a null object reference"" how can resolve it??
bang cara statusbar gradient gimana ya bang ?
Hi can you help me ?
I code this instragram animation like instagram. All its ok only this Main java.
My code is:
import android.graphics.drawable.AnimationDrawable;
import android.support.constraint.ConstraintLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.content.Intent;
import android.appwidget.AppWidgetProvider;
public class Main2Activity extends AppCompatActivity {
Button btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate ( savedInstanceState );
setContentView ( R.layout.activity_main2 );
btn = findViewById ( R.id.button2 );
btn.setOnClickListener ( new View.OnClickListener () {
@Override
public void onClick(View view) {
Intent i = new Intent ( Main2Activity.this, Main3Activity.class );
startActivity ( i );
}
} );
}
ConstraintLayout constraintLayout = findViewById ( R.id.layout );
AnimationDrawable animationDrawable = ( AnimationDrawable ) constraintLayout.getBackground ();
animationDrawable.setEnterFadeDuration(2000)
animationDrawable.setExitFadeDuration(4000)
animationDrawable.start()
}
I Have the problem with the end of code, errors.
setEnterFadeDuration (is red)
setExitFadeDuration (is red)
start (is red too)
I'M NEW ANDROID STUDIO ONLY TWO WEEK REALLY.
I DONT KNOW HOW TO CODE PAST ONE ACTIVITY TO ANOTHER, AND CODE THE ANIMATION IN SAME JAVA MAIN FILES.
I CREATE XML OF GRADIENT FILE LIKE YOU DO, I PUT LAYOUT ID IN THE XML FILE OF MAN.
HOW I DO THAT ???
Good vidéo you have new subscriber 😉
NICE! Thanks a lot!
cannot resolve symbol"ConstraintsLayout" can anybody say a solution for this error
good tutorial c:
Anyway of making this on a Linear Layout? I followed this code on one of my projects but i keep getting an unfortunately __ stoped working error. i changed constraintLayout to LinearLayout for the mainActivity(LoginActivity.java), but cant seem to make it work.
Very Helpful 🙂
How to can do that with the wallpaper ???
Good job! You really helped me.
Loved it
Thanks Angga Risky 🙂 you rock buddy keep it up!!!!
very important tutorial ..great job bro.. i was looking for that kind of animation keep it up friend and please make more tutorials on custom animations and kindly share your resources with us.
hey, please make more animation videos :)!
Great tutorial man…keep on making such knowledgeable videos.
Thank for the video, It very helpful for me.
Thanks!!
Plz create a notification of make a video and how to every 10min then send notification plz make next video