Best practices for themes and styles (Android Dev Summit '18)

  Рет қаралды 53,225

Android Developers

Android Developers

Күн бұрын

This talk focuses on how to work with designers to translate mocks into maintainable themes and styles for a high-quality Android app.
Presented by: Alan Viverette & Nick Butcher
Android Dev Summit '18 all sessions playlist → bit.ly/ADS18-Sessions
Subscribe to the Android Channel! → bit.ly/AndroidDevs1
#AndroidDevSummit event: Android Dev Summit 2018; re_ty: Publish; product: Android - Design; fullname: Alan Viverette, Nick Butcher;

Пікірлер: 28
@dmytromarchuk3023
@dmytromarchuk3023 3 жыл бұрын
After 5 years of being an Android Dev I still don't fully understand how theming and styles work. But after watching the video it seems to be getting more clear
@kunalmehta923
@kunalmehta923 5 жыл бұрын
Can you please share one demo for explaining the same. It will be very helpful.
@ekoprasetyo3999
@ekoprasetyo3999 Жыл бұрын
Finally, after a long time learning styles and theming. I still can't figure out why my text color doesn't want to change .💀
@vit.khudenko
@vit.khudenko 4 жыл бұрын
This is usually such a pain on a typical project where designers use tools that do not support Android theming/styling model. So we, developers, just have to deal with hard-coded colors and sizes. Ok, that would not be such a problem, but usually mockups are not consistent across screens.
@AbhishekBansal14
@AbhishekBansal14 5 жыл бұрын
Good Talk! Theming and Styling is one area of Android which is overly complex, poorly documented and very less understood. This talk tries to throw light on those grey areas to some extent.
@mukhtarbimurat5106
@mukhtarbimurat5106 4 жыл бұрын
Could anyone explain what was the problem when we set style to only one button via "style attribute on Button in layout XML"? 13:30
@pedromassango
@pedromassango 5 жыл бұрын
How we can switch to dark mode via code?
@stefannaumoski5151
@stefannaumoski5151 2 жыл бұрын
You mentioned Primary Light as a replacement for onPrimary, but here we are 4 years later and jetpack compose uses onPrimary... What gives?
@kalidsherefuddin
@kalidsherefuddin 6 ай бұрын
Thanks for
@abdulazizabduqodirov4348
@abdulazizabduqodirov4348 4 жыл бұрын
So how we can switch between themes?
@mg-ht9ir
@mg-ht9ir 3 жыл бұрын
Did you find it bro..?
@abdulazizabduqodirov4348
@abdulazizabduqodirov4348 3 жыл бұрын
@@mg-ht9ir I've re-created the Activity, otherwise we should update every ui I think
@Verrisin
@Verrisin 3 жыл бұрын
Honestly, I wish android had just used some subset of CSS ... it's proven to work well, fast ... the resource/style system they have is ... well, sad to say the least. Very confusing, full of duplication... I've looked through the material library, and it's just *_painful._*
@Verrisin
@Verrisin 3 жыл бұрын
I'm not saying CSS is perfect. By no means. But definitely better. Especially with variables (which, I think is what they wanted, and CSS did not have have the mat all, when Android started, but still) - With CSS one can use SASS etc. (- could be a variant for Android, that can get compiled to resources) - But resources have many issues: they are only read while inflating, and there is no way to 'change' 'style' of a parent, such that it would influence children (i.e. adding to 'class' of a layout), etc...
@Verrisin
@Verrisin 3 жыл бұрын
I hope styling will get somewhat fixed for Compose...
@nfaical3
@nfaical3 2 жыл бұрын
100% right, take for example ReactNative styling
@jan1337
@jan1337 5 жыл бұрын
wait, wait, wait, wait! on the slide @ 18:50 - android:fillColor="?attr/colorPrimary" does crash on pre-21 devices, doesn't it?
@aIexjI
@aIexjI 5 жыл бұрын
You can safely use theme attributes inside of AnimatedVectorDrawableCompat and VectorDrawableCompat XML files. The reason why it doesn't crash is because the vector support library parses the XML drawable files as plain text in order to create a "compat" implementation that will work on older platforms.
@NickButcher
@NickButcher 5 жыл бұрын
Nope, VectorDrawableCompat supports theme colors on all platform levels.
@verdurakh
@verdurakh 5 жыл бұрын
How can I use ?attr with conditionals in the xml? for example textColor=@{if foo ?attr/blue : ?attr/red} seems to only allow @ sematics in there?
@Verrisin
@Verrisin 4 жыл бұрын
So, I watched this talk, finally thought I understand it, tried it.... _aaand_ I don't. XD oh well.
@felipepereira3061
@felipepereira3061 3 жыл бұрын
Not alone dude...
@samsulkarim164
@samsulkarim164 3 жыл бұрын
Yes, tough stuff. Try to example GitHub project tho...
@Verrisin
@Verrisin 3 жыл бұрын
@@samsulkarim164 Honestly, I wish android had just used some subset of CSS ... it's proven to work well, fast ... the resource/style system they have is ... well, sad to say the least. Very confusing, full of duplication... I've looked through the material library, and it's just *_painful._*
@SebastianAcostaCheca
@SebastianAcostaCheca 5 жыл бұрын
isbit
@andrewtfluck
@andrewtfluck 5 жыл бұрын
The 1080p@30fps is bugging me
@cooliipie
@cooliipie 4 жыл бұрын
Too much of a flat plain gradiant
Single activity: Why, when, and how (Android Dev Summit '18)
39:16
Android Developers
Рет қаралды 157 М.
Get animated (Android Dev Summit '18)
39:36
Android Developers
Рет қаралды 109 М.
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 39 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 27 МЛН
100❤️
00:20
Nonomen ノノメン
Рет қаралды 70 МЛН
Introduction to Material 3 (Color Theming, Typography, Shapes)
18:05
Philipp Lackner
Рет қаралды 56 М.
Developing themes with style (Android Dev Summit '19)
40:56
Android Developers
Рет қаралды 59 М.
Fun with LiveData (Android Dev Summit '18)
19:20
Android Developers
Рет қаралды 103 М.
Стили в Android. Как организовать темы в проекты
19:55
Android Broadcast. Все об Андроид разработке
Рет қаралды 17 М.
Testing rebooted (with AndroidX Test) (Android Dev Summit '18)
21:52
Android Developers
Рет қаралды 24 М.
Understand Kotlin Coroutines on Android (Google I/O'19)
37:49
Android Developers
Рет қаралды 173 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 163 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 330 М.
Android themes & styles demystified - Google I/O 2016
36:54
Android Developers
Рет қаралды 30 М.
keren sih #iphone #apple
0:16
kadangaruan
Рет қаралды 1,6 МЛН
Непробиваемый телевизор 🤯
0:23
FATA MORGANA
Рет қаралды 479 М.
сюрприз
1:00
Capex0
Рет қаралды 1,3 МЛН
DC Fast 🏃‍♂️ Mobile 📱 Charger
0:42
Tech Official
Рет қаралды 482 М.