Тёмный

Animating your keyboard using WindowInsets 

Android Developers
Подписаться 1,3 млн
Просмотров 45 тыс.
50% 1

Android 11 added the ability to control the keyboard, even scrolling it in and out synchronized with your app’s content. This video demonstrates how to implement this behaviour, and covers the new Jetpack functionality enabling this for easier WindowInset handling.
Timestamps:
Going Edge-to-edge changes: 00:45
New WindowInset APIs: 03:45
Check visibility of keyboard: 05:03
Hide/show keyboard: 05:33
Immersive modes: 06:14
Light status bar: 06:53
Inset animations: 07:37
WindowInsetsAnimation walkthrough: 08:16
WindowInsetsAnimation example: 09:13
Controlling inset animations: 10:28
SimpleImeAnimationController: 11:35
Drag sample: 12:13
Resources: 13:03
Resources:
Sample → goo.gle/insets...
Blog post → goo.gle/keyboar...
AndroidX Core → goo.gle/2QlCyOd
Check out the 11 Weeks of Android website → goo.gle/30FDT8S
Related Playlists:
UI - 11 Weeks of Android playlist → goo.gle/ui-11w...
11 Weeks of Android playlist → goo.gle/androi...
Subscribe to Android Developers → goo.gle/Androi...
Speaker:
Chris Banes @chrisbanes on Twitter → goo.gle/34iXbmv
#featured #android11 #11WeeksOfAndroid

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@arpanbag001
@arpanbag001 4 года назад
Finally, an easy to use keyboard API! Let's see whether it works on different devices properly. Before that, one piece of advice for devs at Google, STOP DEPRECATING APIs BEFORE NEW ONES ARE FULLY READY (INCLUDING COMPAT ONES). We can't use alpha APIs on production, so can't migrate, and old codes look really bad, being full of deprecation warnings.
@goki2462
@goki2462 3 года назад
They just wanna look like they're doing a real progress and a good job lol I think we are used to it. No hard feelings though, they make our lives easier with some new APIs and others just make it hard. One great example is storage crap.
@smithshelke2036
@smithshelke2036 4 года назад
Chris banes has always been the insets saviour.
@senab
@senab 4 года назад
🙌
@goobar
@goobar 4 года назад
Haven't tried this yet, but the demos look so good!
@theaninova
@theaninova 3 года назад
Oh my, this is one of the things that have been bugging me forever Now we just need a cleaner screen rotation animation and we are all set.
@Rumikimoku
@Rumikimoku 4 года назад
Super excited about new APIs. They look so much nicer than the old flag-thing that I cannot even believe I'm seeing this. Thanks!
@sangameshpatil166
@sangameshpatil166 4 года назад
Sir , I am having error that shows PROCESS UNEXPECTEDLY EXIT while I run and I am using Android Studio 3.5
@chandruscm
@chandruscm 4 года назад
Imagine the reaction of the OPs of those SO questions. 😂
@SouravBagchigoogleplus
@SouravBagchigoogleplus 4 года назад
After these many years I finally found a solution.
@d00-00m
@d00-00m 3 года назад
How to clicked on edittext programitocally? With keyboard shows Please code here? By clicking this keyboard its does not write on edittext
@joostklitsie5107
@joostklitsie5107 4 года назад
Can anyone please remind me about this when about 80% of devices run Android 11? :)
@Chintanparmar
@Chintanparmar 4 года назад
🤣🤣
@MrCuagia
@MrCuagia 4 года назад
Don't have to wait, WindowInsetsCompat's available on Jetpack alpha
@babythedude
@babythedude 4 года назад
@@MrCuagia You still need a Android 11 phone to run the code right?
@MrCuagia
@MrCuagia 4 года назад
@@babythedude No, we don't need it!
@tyronscott
@tyronscott 4 года назад
@@MrCuagia what about the window inset animation controller? is it already available on androidx?
@DiranesPlay
@DiranesPlay 4 года назад
What about Insetter library? With new api we don't need it anymore?
@ВладиславШестернин-б9с
Great, thank you so much, for this is the future of android app development )))
@satyajitdas8881
@satyajitdas8881 4 года назад
Looks cool.
@azekDv
@azekDv 3 года назад
setSystemBarsAppearance(* , *) not work for me. I'm trying to change status bar appearance dynamicly. Who has the same issue?
@SpaceTimeBeing_
@SpaceTimeBeing_ 4 года назад
Would this work with bottomsheetdialogfragment? Move the bottomsheet up with the keyboard
@케로로-중사
@케로로-중사 4 года назад
Are those only works on Android 11 devices?
@bobmagrega
@bobmagrega 3 года назад
Please tell me how to hide a system navigation bar in Xamarin?
@punitchand7468
@punitchand7468 4 года назад
what to do if design is not working ???
@tom0176devo
@tom0176devo 4 года назад
Shame that no app developers bother integrating their apps to flow with android at all, still got black nav bars on every app, keyboard will be the same
@AnandPatil-qr4fg
@AnandPatil-qr4fg 4 года назад
Thanks sir
@samehyousef8338
@samehyousef8338 2 месяца назад
Is there anyone who can modify the Keys cafe application, so that the click display time becomes shorter, like a normal keyboard?
@ducpham7896
@ducpham7896 4 года назад
thanks
@AntonStulnev
@AntonStulnev 4 года назад
Too bad it took Android so many years to finally add Keyboard API... iOS has had it for like a decade. And it will take several more years for these APIs to become useful, when some reasonable amount of users get Android 11 installed on their devices.
@jsonr
@jsonr 4 года назад
Have you heard of jetpack and the androidx libraries?
@babythedude
@babythedude 4 года назад
@@jsonr But do they work on devices lower than Android 11
@jsonr
@jsonr 4 года назад
@@babythedude i presume yes, given google is doing things with project mainframe to make android updates useless
@fukemy123
@fukemy123 3 года назад
finally it's have nice keyboard look like ios....
@fukemy123
@fukemy123 3 года назад
@@babythedude tested in android 10. animation look good, but i guess the duration is 0 ...
@benjaminsilva5594
@benjaminsilva5594 3 года назад
How to record the bottom of the view? ._.
@hariskumar9010
@hariskumar9010 6 месяцев назад
Did you manage to find the extension?
@hiteshchalise3988
@hiteshchalise3988 4 года назад
so good 👌👌
@MAIanusISbleeding
@MAIanusISbleeding 4 года назад
yesssssss, this is tasty
@xPyc9x
@xPyc9x 4 года назад
Top
@ananthnaren9183
@ananthnaren9183 4 года назад
I want to become android developer
@mhdelmurad3991
@mhdelmurad3991 4 года назад
Hello
@ttv_klg_oponet2399
@ttv_klg_oponet2399 4 года назад
Add fortnite
@fukemy123
@fukemy123 3 года назад
i got crash in samsung A02S, android 10
@fukemy123
@fukemy123 3 года назад
but it's look not good like apple did
Далее
Compose for existing apps
22:06
Просмотров 26 тыс.
다리찢기 고인물⁉️😱 Leg Splits Challenge
00:37
小丑调戏黑天使的后果#short #angel #clown
00:16
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
Просмотров 164 тыс.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Просмотров 136 тыс.
This Took Me 150 Hours to Code
16:40
Просмотров 224 тыс.
Thinking in Compose
25:27
Просмотров 87 тыс.
What does larger scale software development look like?
24:15
Kotlin Flows in practice
21:06
Просмотров 162 тыс.
How to Build a SaaS Factory - Ship 10x Faster
14:12
Просмотров 16 тыс.
다리찢기 고인물⁉️😱 Leg Splits Challenge
00:37