Android TV: Best Practices for Engaging Apps (Android Dev Summit '19) |
IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...
My name is Casio I am a developer relations listed here at Google I work generally with Android Television set and these days We'll take a look at ideal procedures for engaging applications which can be form of like and gay embraces plenty of things It truly is sort of a generic title so to
narrow it down here's the things that We'll speak about I will begin by declaring a small amount of the point out of residence and front room as we recognize below Google then I'll go to speak about some Android Television set Essentials which several major key
apps to missus and and and has some mistakes in there and no engaging app and I acquired excellent an awesome engaging app start of receiving each of the basics ideal then we're relocating to speak a little bit regarding the linkback library and on the list of key questions that
Most people constantly has and that is how can I customize the Leanback library it will not match necessarily the what I need particularly am i able to change it could possibly I customize it spoiler inform the answer is generally Indeed and we're going to speak a little bit about that then I'm heading
to mention the OS integration they are going to take a look at how we can easily combine with Android TVs homescreen to function our content we are going to take a look at discoverability through lookup and interesting With all the guidance so starting having a point out of dwelling and lounge for us at
Google so know-how has transformed how we communicate with the home in this article at Google we believe that the following wave the following leap forward in technological know-how for the home will originate from the intersection of hardware software program and artificial intelligence one your own home to not simply be smarter together with your
house not merely really should be far more handy but many of us we wish are your own home to be just right for you and bringing with each other hardware software package and artificial intelligence to offer an incredible Spurs to our end users which of course is anchored through the Google assistant the helpful Google process that
delivers jointly look for that delivers jointly media and every one of the media points and each of the media contact factors at Google and if we are speaking about media there isn't a improved destination to consume media and to observe media than the bigger monitor your property Therefore the Android TV is
at the guts from the media in the Google assistant ability at your home you might have your wise phone your wise auto your Wise speakers plus the Android Tv set provides every thing together in one position media games tunes and all those experience together into one particular significant screen with your
family room Android Television seen a lot of momentum lately six away from the top six away from 10 top rated Sensible Tv set manufactures are delivery TVs with Android Television set and over a hundred and forty pay back TV operators are shippi setup packing containers with android Tv set also this has
been a huge improve in the last several years which great momentum that we have been seeing on Android TV extends to developers at the same time we just lately introduced that We've got now over five,000 apps on Google Engage in for Android Television set in excess of a thousand of these being for from steaming
streaming articles providers so there's a great deal taking place Android TV and at Google we've been concentrating plenty of efforts in Android Television set so let us take a look at a great producing terrific participating Android TV apps so to get going what can make an entry Television app or an Android application
and Android Tv set application due to training course remaining Android signifies you can reuse all of your capabilities as an Android developer to build an Android Tv set app but what causes it to be a TV app nicely start with the basic principles You must declare your capabilities and I do know this
is basically basic but I want you to true to the touch on this since as I mentioned There are plenty of big applications that skips or misses some of these Basic principles and no fantastic partaking app is effective when you skip the basic principles so obviously the main function that
you'll want to declare is you don't strike my contact screen since the previous time I checked persons Do not go and touching their dwelling screen TVs their living room Television so If your issue their fingers are interact employing a handheld remote control also You must declare that you just
use linkback this does not essentially make reference to the backlink again library website link again is this generic term that we use to define this experience of viewing Tv set which differs from utilizing a cellular machine because you're working with it in a length in a very link again situation in a backlink
back scenario so You need to declare that up coming you have to declare your software banner just stage I will communicate a little bit more about manner which can be something which we usually have problems with And at last you have to declare your Android Tv set intent which isn't
the key tent this means you declare your Leanback launcher so Poona you're Placing out alongside one another you declare the options that you just use you declare the banner therefore you declare your connection again in intent 1 two a few your capabilities your banner within our backlink back intent but I choose to
converse extra a bit more about the app banner by itself that's the banner in case you ever employed Android Television you understand how it seems but Here is the matter in many a lot of scenarios you may look Mistaken and in lots of apps we've seen hunting Erroneous certainly one of these types of examples is
whenever you offer a cell iptvgreek.com/iptv-reseller/ icon right here Android Television application what happens is that the icon will probably be scaled and put Within the dim rectangle so it looks like this Odd mixture of a square icon inside a rectangle spot this happens once you give a mobile icon 512 by
512 inside your lovable xhdpi folder to make sure that's Improper don't try this also should you present any banner There is certainly bigger than 300 320 by 180 won't subject where folder you place it it's not likely to seem correctly this isn't in this example Now we have a 9
and 16 by 540 pixel impression in The remainder drawable folder it doesn't perform if you put in a different spot so listed here I have the identical image place during the drawable way Television DPI also will not seem accurately yet again the way to get it done is exactly 300 320 by
a hundred and eighty pixels in the rest drawable xhdpi folder in this manner your banner seems correctly and remembering that our banner is utilized to question your application representation but It is also utilised in other places like by way of example during the plain x roll so perhaps nailing it down properly is very important at last if
you desire your software to become revealed for during the Play Keep for Android TV There exists a Exclusive choose-in distribution you have to examine if you do not do this it isn't really about to go for that Enjoy Store so with your Participate in console You need to locate
this distributor application on Android Television set it isn't really plenty of to indicate it isn't enough to indicate you have a website link back again launcher you actually have to seek out this distributor on Television set and Test that box and The main reason for that is certainly there are many plant many hybrid platforms
or multi-System natural environment growth environments that routinely says that all the things is enabled just like a Leanback launcher by way of example but you could possibly never have really examined none on Television by making use of these these enhancement atmosphere so that doesn't automatically indicate it is going to operate the right way with a Television so This is why
we asked you to check that precisely checkbox superior in order that that they're the basic principles these are typically the very bare-bones that you've got to nail let us discuss the Leanback library now needless to say the linkback library Is that this this list of widgets superior degree widgets that we provide
they ensure towards the materialized specs and they offer a great practical experience for applying Tv set at a length We've widgets for the house display screen which has such as rows and a navigation drawer We now have widgets for written content information We've got widgets for your great deal of various scenarios but
by far the most Regular query that we hear with regard to the Leanback library is very well the widgets that you choose to deliver isn't going to fit 100 percent what you'll need so are there any tips on how to customize the Leanback library very well the answer is Sure there are fundamentally two approaches you could go about
customizing the Leanback library sorry it is possible to just simply just alter the colors and Proportions values in the application otherwise you can offer tailor made presenters so let's converse a little bit about hues and Proportions if we go specially if we glance exclusively within the Browse fragment that's the a single
that may be useful for quite a few homescreen from your home monitor of most important programs which can be the one that shows up sidebar navigation plus the rows of contents you will discover like Just about 20 Qualities only with regard to the Look through fragment that you can modify in your callers and interior dimensions values things like
brown like padding like title stereos roll models and these applies also for the navigation tower to every of the individual cards and so forth to this point so by way of example can I Regular issue can I make my navigation drawer shorter yes you can you don't need to write code
for that just by changing the Marg's and the margin pennies and various dimensions you are able to do that Certainly we have to do a much better job at documenting these Qualities at times they're not automatically quick to locate Nevertheless they exist and you can go a good distance just by
modifying the worth of those Attributes now in some instances that's not enough Hence the linkback library It truly is based upon MVP or Design Check out pattern which is among the numerous mV whatsoever moms and dads and a lot of of Those people widgets they assist you to give a customized presenter I'm not
planning to dwell into the details about what tends to make what is the distinction between MVP or MVC or mvvm but the fact is that on MVP your presenter functions since the glue between the product and the see but it's also chargeable for initiating or inflating in Android language the see
meaning that by supplying a tailor made presenter you might be really in total Charge of what you wish it to appear like what you want that widget to look like because you can offer a custom see so let us take a look at an illustration yet again I'll make use of the
Browse fragment mainly because it's the one that's largely utilised as the main display of applications the Browse fragment it contains and it expects an array object adapter for genuine demonstrate the individual listing rows and the individual list rows one's a header top and also a submit adapter and many others etcetera but
I'll focus on the upper ident presenter which can be the one which we can use to customize how the navigation drummer seems to be so as an example say I need to own my navigation drawer and I need to Display screen icons near to my textual content close to my titles nicely
what you can do Within this code is in Java what you are able to do is provide your custom made presenter In cases like this I am contacting it the icon header merchandise presenter extending home header presenter and you have two of the ideal three various approaches at bare minimum amount three distinct capabilities
on make check out holder on bind discipline holder and personal unbind check out holder on generate watch holder in this article inflate your structure and once more because it is a presenter you inflate format if throughout the presenter you might be in complete control of furnishing any watch that you'd like on bite look at
holder you set the contents and naturally on bite you totally free the assets so let us take a look suppose I need To accomplish this icons I am able to do that by giving a customized perspective by making use of a linear layout and like not merely a textual content look at which is the
default but additionally an image check out then on by perspective holder again an occasion from the see holder presenter as well as header merchandise by receiving the hider item I can call Attributes like get name and use those to fill my text look at label and icon not to mention
on you override individual unbind check out holder to free of charge any methods that you've utilised they are the three minimal ones you have to overwrite but certainly you can find others if you want by way of example to customize how they truly feel how they look how the individual objects seem
after they're chosen there is certainly 1 system you could you could possibly override for that back again in black in back again as part of your exercise you can established the header presenter selector by providing an occasion of your personalized presenter in my case I can't have their product presenter That is an old
case in point but why Do not you employ it either way as it's not quite perfectly-regarded and it's once again a very common question good let's now talk about Oprah OS integration there are 4 significant things which your application really should do to correctly integrate in the Android Tv set operational system and
give an engaging knowledge integrative look for media playback controls as activated via the assistant and naturally the house display integration to Engage in subsequent and personalized channels let us Check out each of one of those so media uncovered why nicely mainly because it permits the users to find out content
by invoking playback from queries by voice well How does one do it you make our application searchable by using a information supplier when the assistant performs question to the content service provider it can start actively playing again using intents let us Examine this sample code in this article closer so
I'm building my own research execute a articles company extending articles provider these illustrations are in cuddling I've a write the query functionality and I need to return a cursor the way in which I'm going to do the research perfectly that for ice you can do the search wherever you
want you can look for neighborhood articles that You could have downloaded in the app you'll be able to perform searches on the server whichever you are doing at the top you return a matrix cursor as well as their method to Screen your search engine results inside of almost every other search results now the matter is
even though you would like you are able to do this research on your own provide you want to get it done you want to do it quick simply because Google will their process will clearly show an Ender android Television set will show you will find the effects as they seem Therefore if the entire other applications are
a lot quicker than yours all of their icons all of their banners will seem very first than yours which means you intend to make it a lot quicker upcoming media controls why perfectly as you choose to allow the user to control playback by utilizing voice How would you get it done you integrate media sections
media sessions to handle the callbacks so when you utilize the person utilizes their distant to try and do playback towards the playback responses such things as Engage in or pause or perhaps smarter types like skip to your previous channel or to skip to prior episodes or skip to following which may be
utilized by both movie and audio applications you can even do a thumbs up If you'd like which can be a lesser-identified aspect and the best way you try this all over again you offer your media session fallback by extending meters require a session compact callback and you'll overwrite most of these
capabilities You should not Perform on pause on cease on six you on skip to future on skip to previews and by Regulate override all these controls and Command your own private player and by delivering this callback for your media session instance your app now responds into the assistant playback controls
now we're going to move to take a look at the integrations While using the Android TVs property display screen The key 1 bling becoming the Perform up coming row mmm so if you do not know the Android Tv set interface It truly is made of those rows the first row is usually a row from the
person favorites the users beloved apps and also the the really 1st row after the list of the people apps would be the Perform upcoming part and it's a part or maybe a channel as we call it that aims to be this global space for the customers articles across unique apps so
The concept here is that any any content material that the user is interested on or even the user interacted with but did not completed your app can push this information into the basic X row so why you keep your viewers engaged with information and struggle desire or fascinating or haven't concluded
seeing which include preferred videos or future episodes of the sequence or simply a Motion picture that he has not finished How does one do that very well you publish your check out subsequent plan to Android entry preview channel helper you won't have to boot or worry about your written content supplier you and what
is it effectively the Android CBS Perform upcoming row is updated to replicate modern engagement and set relevant written content in the viewers fingertips s contents are additional older contents go to the ideal and at some point in the consumer never ever interacts Using these other contents They can be faraway from
the from their Enjoy following position once more let's Examine this code a little bit closer so Android X's view another system for what follows the Builder pattern so develop a builder you established the look at next sort you set a kind which may very well be a movie
or simply a series or songs Then you certainly present your title and description along with your poster art URI it's also essential to established the last time of engagement since this photo could possibly be a little much too as well much too modest but when you Test in the event
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |