Animated Background | Android Studio

  Рет қаралды 34,590

Practical Coding

Practical Coding

2 жыл бұрын

In this video, you'll learn how to create an animated background that can change from one color to another. We'll go over how to use Android Studios' drawable resource files to define the colors, create an animation list, and start the animation on a constraint layout background. Adding this into an existing app or one you're currently working on is super easy to do and adds a nice look to log in or home screens.
Android Studio is a great platform for creating apps that can be deployed on the google play store. If you're new to the series I'd go and check out the Android Studio Playlist. There, you will be able to see how to create basic apps so you can become a developer.
Join the Discord Server!!!
/ discord
Check out the Android development playlist for more videos like this!
• Android App Developmen...
#androidstudio #appdevelopment #PracticalCoding

Пікірлер: 58
@EmirhanYilmaz_
@EmirhanYilmaz_ Жыл бұрын
Thanks for the tutorial! Short, simple and effective 👍
@universalponcho
@universalponcho 2 жыл бұрын
Good stuff. An updated version. Thank you very much.
@bishakdey
@bishakdey 2 жыл бұрын
What a cool trick, thank you so much Jason!! ⭐
@tufailredclifftech5583
@tufailredclifftech5583 2 жыл бұрын
one of the best tips that you are teaching us. thanks
@jacksonw628
@jacksonw628 2 жыл бұрын
Just found your channel, thank you for all the time you're about to save me
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Glad you're finding the videos helpful!
@VideoInstaller
@VideoInstaller Жыл бұрын
Dude. Thank you so much, you totally saved my day!
@alpr_shn
@alpr_shn Ай бұрын
thank you so much Jason!!
@OCEH6
@OCEH6 2 жыл бұрын
Thank you a lot! Awesome lesson!
@hvl6906
@hvl6906 2 жыл бұрын
Love from INDIA!
@balogunoluwatobijohn154
@balogunoluwatobijohn154 2 жыл бұрын
Thank you very much!
@realfaw
@realfaw 2 жыл бұрын
The Legend is Back with a banger!
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Yes sir!!
@creamyturtle69
@creamyturtle69 2 жыл бұрын
awesome video, thanks for the new content. I was able to add it to an app I am working on and it worked like a charm
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Good stuff. Happy to hear you were able to use the background
@leonlylarichi3365
@leonlylarichi3365 Жыл бұрын
Thnks for tutorial short , 🎉
@shaidulislam4054
@shaidulislam4054 4 ай бұрын
lots of thanks
@jesusribeiro9447
@jesusribeiro9447 2 жыл бұрын
You've earned a subscriber!
@meersaqibbaloch2990
@meersaqibbaloch2990 2 жыл бұрын
can we add it in Linear layout or relative layout etc as well?
@Nates2823
@Nates2823 2 жыл бұрын
Your the best teacher
@ebi7hosseinpour902
@ebi7hosseinpour902 2 жыл бұрын
You are amazing 🤩 thank you!!!
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Thanks!
@ebrahimhosseinpour4829
@ebrahimhosseinpour4829 2 жыл бұрын
thank you!!!
@enesylmaz8311
@enesylmaz8311 2 жыл бұрын
Thank you for trick.
@euginepro
@euginepro 2 жыл бұрын
Great
@hakanncevikk
@hakanncevikk 2 жыл бұрын
thanks bro nice video
@webmasteremil2678
@webmasteremil2678 Жыл бұрын
Any idea how to do this in kotlin? The xml part is identical but the code you wrote in the mainactivity.java is not compatible with kotlin it seems
@nwcoder
@nwcoder Жыл бұрын
Informative video sir...❤️🥰
@sercancetincom
@sercancetincom Жыл бұрын
thanks bro
@user-hu7ne5ut5g
@user-hu7ne5ut5g 2 жыл бұрын
Please tell me what these methods: 1. setEnterFadeDuration(); 2. setExitFadeDuration(); do.
@Debuggers10
@Debuggers10 2 жыл бұрын
Nice one
@thirstykoala6216
@thirstykoala6216 2 жыл бұрын
Hello, Thank you for the video. Is there a way this could be done with lets say five pictures instead of five colors and cycle through them to make a live wallpaper? Thank you
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Just tried it out and it works just fine. In the gradient list XML file, I just replaced the drawable reference from the backgrounds with the vector assets
@Putevar
@Putevar Жыл бұрын
Just figured out a way to make it work on buttons too: Use insted of to set android:Backround="@drawable/gradient_list.xml. Combine both layout background and button background gives a really cool effect. :)
@leonelp9593
@leonelp9593 Жыл бұрын
sweet
@sgrbh1685
@sgrbh1685 2 жыл бұрын
Thank you sir
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Happy to help!
@SukhdevSingh-cn3qf
@SukhdevSingh-cn3qf Жыл бұрын
Thanks boss...........🤝 very big problm is solved😃 its working👍
@PracticalCoding
@PracticalCoding Жыл бұрын
Good to hear!!!
@mrunalpimpalkar3090
@mrunalpimpalkar3090 2 жыл бұрын
Great one sir 🔥🔥🔥
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Glad you liked it!
@leonelp9593
@leonelp9593 Жыл бұрын
bro why did u defined a Selector and Item Tag for each created background ? you are not using any StateListDrawable there
@smartknowledge2055
@smartknowledge2055 2 жыл бұрын
Thanks
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Happy to help!
@MdRifat-Hossain
@MdRifat-Hossain 11 ай бұрын
Take love
@carlosmbaziira4137
@carlosmbaziira4137 Жыл бұрын
🤠👍
@hegodamask8574
@hegodamask8574 2 жыл бұрын
Can a picture be added to a background resource file instead of a color? And if so, how do you set the parameters?
@PracticalCoding
@PracticalCoding 2 жыл бұрын
That's a great question. I would think you could do that. I know in an app that I'm working on, I have an animation that fades vector images in and out. Are you looking for something similar to that?
@user_bilal
@user_bilal Жыл бұрын
@@PracticalCoding yeah, can you make a video on how to do that? I want to use an animated notification icon, for a custom ongoing notification. There's a property called "setAnimatedIcon()" but I don't know how to import a gif into Android studio and make it work
@gowthamreddy5226
@gowthamreddy5226 2 жыл бұрын
Keep white background colour for android studio
@ashutoshdash805
@ashutoshdash805 2 жыл бұрын
I used 4 drawable resources in an Animation background...in my app, after the completion of 1 round of the animation my app crashes automatically. How to fix that?
@creamyturtle69
@creamyturtle69 2 жыл бұрын
did you add all 4 to your gradient_list.xml file as items?
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Hey! Can you paste the error message you're getting in a comment so I can take a look? Or you can always join the Discord server I made for this channel. Here's the link if you'd prefer to do that instead discord.gg/H2P89STbaS
@boringchicken8342
@boringchicken8342 2 жыл бұрын
pls make chess in android studio Thanks pls pls consider it
@PracticalCoding
@PracticalCoding 2 жыл бұрын
I have that on my videos to make list. I think it would be really cool to do, but I'm not sure how I wanna take care of the AI. Once I figure that out, I'll definitely be making one
@idoshimon791
@idoshimon791 Жыл бұрын
blink count: 7
@battlnerd2128
@battlnerd2128 2 жыл бұрын
go play Tetris
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 129 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 95 МЛН
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,5 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 10 МЛН
How to Support ALL Screen Sizes on Android - Full Guide
19:10
Philipp Lackner
Рет қаралды 110 М.
Animated Gradient Background - Android tutorial
12:35
Full Stack Designer
Рет қаралды 22 М.
Motion Layout in Action | Android Studio Tutorial
14:19
Stevdza-San
Рет қаралды 69 М.
How to Make a FAB Explosion Animation - Android Studio Tutorial
15:15
Philipp Lackner
Рет қаралды 27 М.
How to make a scientific calculator in Android Studio 2021 | Part 4
24:10
Splash Screen Android Studio | Splash Screen | Android
8:25
Coding With T
Рет қаралды 143 М.
Slow Mo Spiral
0:11
Magnetic Games
Рет қаралды 38 МЛН
Chúa ơi - Hãy thử cái này #automobile #funny #shorts
0:12
hoang quach
Рет қаралды 26 МЛН
Мужик психанул и купил 200 Ленд Роверов
0:19
Сергей Милушкин
Рет қаралды 3,5 МЛН
Looks realistic #tiktok
0:22
Анастасия Тарасова
Рет қаралды 14 МЛН
Choose a car for Mom ♥️ #shorts #trending #viral #cars
0:17