Slices ist die neue, abwärtskompatible API, die als Teil von Android P eingeführt wurde. Sie ermöglicht Apps die einheitliche und konsistente Darstellung ihrer Inhalte und Aktionen auf Android- und Google-Oberflächen über vom Entwickler angepasste Vorlagen. In dieser technischen Sitzung wird das Erstellen von Slices besprochen und alles behandelt, was Sie wissen müssen, damit sie als interaktive Ergebnisvorschläge in der Google-Suche auf Android angezeigt werden. Dies beinhaltet eine Live-Codierungssitzung mit einer Beispielanwendung.
Bewerten Sie diese Sitzung, indem Sie sich auf der I / O-Website hier anmelden →
Weitere Android-Sessions von I / O '18 finden Sie hier →
Sehen Sie alle Sitzungen von Google I / O '18 hier →
Abonnieren Sie den Android Developers-Kanal →
# io18.
Demo app to get started with all sorts of slices: https://github.com/hiteshsahu/Android-Slices-Demo
Some questions:
1. About 13:10 Are Slices as flexible as Widgets?
2. About 14:58 , does this mean we have to provide all types of slices : shortcut, small, large ?
3. About 16:40 , doesn't it have a recyclerView like mechanism? It can't be that we provide it with a lot of images…
4. About 17:45 , why is it needed to link the MainActivity to the Slice? I don't see it being written in the sample manifest file. Same goes for permission granting on 18:14
What is happening on the slide at 9:50 ? That code starting with getContext() makes no sense. The part at the end with ",null))" is adding a null argument and two closing parenthesis on to nothing. Unless I'm missing something?
Java written in Kotlin, it pains me to view those code samples XD Guys those slides serve juniors as seniors, I know it's not a kotlin tutorial video but people will be copying this code over and over. Would be nice to make sure it is a nice piece of work.
Or write in pseudo code..
virgins
damn it, i live in china and google search doesn't exist, hence this whole feature will never work. No wonder I see everyone with money in China buy's an Iphone, google just appears to be not coming anytime soon.
Would be great to implement own Slices 🙂
Sup, home slice
fuchsia, is that you?
Thanks for sharing nice video… keep in touch thank you
Apps should have been integrated in the system this way all along.
Hi Google
People Shocks Google Rocks 😍
First ❤️