IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...
My title is Casio I am a developer relations here at Google I function mostly with Android Television set and these days We'll talk about most effective practices for participating applications which is kind of like and gay embraces loads of things It can be kind of a generic title so to
slim it down here's the things that We will speak about I'll start by expressing a little bit of the point out of household and front room as we understand below Google then I'm going to go to mention some Android Tv set basics which quite a few major important
apps to missus and and and it has some mistakes in there and no participating application And that i got terrific an incredible engaging app commence of acquiring the entire Fundamental principles proper then we are transferring to talk a little bit about the linkback library and one of the main queries that
everybody generally has that's how do I personalize the Leanback library it isn't going to in shape necessarily the what I want just am i able to alter it could I customise it spoiler alert the answer is usually Sure and we're going to chat a little bit about that and afterwards I'm going
to look at the OS integration they will look at how we will combine with Android TVs homescreen to attribute our written content we are going to speak about discoverability by lookup and interesting with the guidance so starting up using a condition of home and living room for us at
Google so technological know-how has changed how we communicate with the home in this article at Google we think that the subsequent wave the subsequent step forward in technology for the house will originate from the intersection of hardware computer software and artificial intelligence just one your home to not simply be smarter with your
house not simply must be additional helpful but most of us we would like are your home to give you the results you want and bringing alongside one another components software package and artificial intelligence to supply an unbelievable Spurs to our consumers and this obviously is anchored by the Google assistant the practical Google system that
brings jointly search that provides jointly media and the many media points and every one of the media Get hold of details at Google and if we are speaking about media there is not any much better spot to consume media and to look at media than The larger display your house so the Android Television set is
at the heart in the media from the Google assistant electricity at your house you might have your smart cellphone your smart car or truck your Smart speakers and the Android Television set delivers anything collectively in a single area media online games audio and all those encounter alongside one another into one particular huge display inside your
living room Android TV observed a great deal of momentum just lately 6 outside of the top six outside of ten leading Clever Television set manufactures are delivery TVs with Android Television and over a hundred and forty fork out Television operators are shippi build containers with android Television set in addition this has
been a large raise in the last number of years which wonderful momentum that we are seeing on Android Tv set extends to builders in addition we not too long ago introduced that we have now above 5,000 apps on Google Perform for Android Television above a thousand of them becoming for from steaming
streaming written content vendors so there's a large amount taking place Android TV and at Google we have been concentrating plenty of initiatives in Android TV so let us take a look at an awesome making terrific participating Android Television set applications so to get started what would make an entry TV application or an Android app
and Android Television set app because of system becoming Android signifies that you can reuse all your expertise being an Android developer to build an Android Television set application but what can make it a Tv set app effectively begin with the basics You must declare your features and I'm sure this
is actually simple but I need you to genuine to touch on this mainly because as I mentioned There are tons of massive apps that skips or misses some of these basics and no terrific engaging app will work when you overlook the basic principles so of course the very first function that
you must declare is that you Really don't hit my contact display screen because the past time I checked folks don't go and touching their dwelling monitor TVs their front room Television set so if the matter their fingers are interact employing a handheld remote control also you have to declare that you choose to
use linkback this does not essentially confer with the backlink again library link back again Is that this generic phrase that we use to determine this encounter of looking at Television set which is different from using a cell device as you're utilizing it in a length in a url back position in a website link
back predicament so you have to declare that following You need to declare your software banner just level I'm going to converse a bit more about way which can be something which we usually have problems with And at last It's important to declare your Android TV intent which isn't
the primary tent and that means you declare your Leanback launcher so Poona you're Placing out alongside one another you declare the functions that you just use you declare the banner and you also declare your backlink back in intent one particular two 3 your characteristics your banner inside our link back intent but I need to
speak more a bit more about the application banner by itself that's the banner for those who ever applied Android TV you know how it seems to be but This is the factor in many many situations you would possibly search Incorrect and in several applications we've seen looking Mistaken among such illustrations is
when you offer a mobile icon in this article Android TV app what transpires is that the icon is going to be scaled and put In the dark rectangle so it seems like this Bizarre blend of a square icon inside a rectangle area this occurs whenever you supply a cellular icon 512 by
512 with your lovable xhdpi folder making sure that's Incorrect usually do not do that also in case you supply any banner There is certainly bigger than 300 320 by one hundred eighty doesn't matter wherein folder you place it it's actually not heading to seem the right way this is not in this instance We have now a 9
and 16 by 540 pixel image in the rest drawable folder it would not do the job if you place in a different put so here I hold the same graphic put from the drawable way Television set DPI also will not seem correctly all over again how to make it happen is precisely 300 320 by
one hundred eighty pixels in The remainder drawable xhdpi folder in this manner your banner seems to be effectively and remembering that our banner is utilized to question your application illustration but It is also employed in other places like for instance during the basic x roll so possibly nailing it down correctly is very important lastly if
you would like your software to be posted for within the Participate in Keep for Android Television set There's a Particular decide-in distribution that you have to check If you don't try this it isn't really likely to go for the Participate in Shop so in your Engage in console You will need to discover
this distributor app on Android Television set it isn't really plenty of to indicate it isn't really ample to point out that you've got a backlink back launcher you even have to discover this distributor on Tv set and Check out that box and The rationale for that's there are numerous plant a lot of hybrid platforms
or multi-System setting enhancement environments that automatically claims that everything is enabled like a Leanback launcher for instance but you may hardly ever have really analyzed none on TV by making use of these these progress surroundings so that does not essentially imply it is going to get the job done properly over a Tv set so This is exactly why
we questioned you to check that exclusively checkbox very good to ensure that that these are definitely the basics they're the pretty bare-bones that you've to nail let us take a look at the Leanback library now certainly the linkback library is this this list of widgets significant degree widgets that we provide
they validate on the materialized specs and they supply an incredible knowledge for applying TV in a distance We now have widgets for the house monitor which is made up of for example rows along with a navigation drawer We've widgets for articles information We now have widgets for your lot of different situations but
probably the most frequent issue that we hear regarding the Leanback library is perfectly the widgets you give will not suit 100 p.c what you need so are there any methods to customize the Leanback library perfectly The solution is Indeed you'll find generally two techniques it is possible to go about
customizing the Leanback library sorry you can just only alter the shades and Proportions values with your app or you can offer customized presenters so let us discuss a little bit about shades and dimensions if we go precisely if we glance specially for the Browse fragment that is the one particular
that is definitely used for many homescreen from your home display screen of major purposes that is the one which displays up sidebar navigation along with the rows of contents you will discover like almost twenty Homes only with regards to the Search fragment that you could modify with your callers and internal Proportions values things such as
brown like padding like title stereos roll types and these applies also on the navigation tower to each of the individual playing cards and the like thus far so by way of example am i able to Regular query am i able to make my navigation drawer shorter yes you'll be able to you need not publish code
for that just by switching the Marg's as well as the margin pennies and other dimensions you are able to do that yes we really have to do a greater task at documenting these Houses at times they don't seem to be always effortless to discover Nevertheless they exist and you will go a great distance just by
modifying the worth of those Houses now in some cases that's not enough Hence the linkback library it's based upon MVP or Model Check out pattern which is probably the lots of mV whatever moms and dads and lots of of those widgets they enable you to supply a personalized presenter I'm not
about to dwell into the main points about what would make what's the difference between MVP or MVC or mvvm but The reality is that on MVP your presenter acts because the glue concerning the product plus the look at but It is also accountable for initiating or inflating in Android language the perspective
which implies that by delivering a tailor made presenter you might be in fact in full Charge of what you wish it to look like what you want that widget to seem like as you can offer a customized check out so let's Look into an illustration once again I will utilize the
Search fragment mainly because it's the one which's generally made use of as the key screen of applications the Search fragment it incorporates and it expects an array object adapter for precise clearly show the individual checklist rows and the person checklist rows 1's a header top along with a post adapter and so forth etcetera but
I'll focus on the upper ident presenter which happens to be the one which we could use to customize how the navigation drummer looks so for example say I would like to have my navigation drawer and I would like to Show icons close to my textual content close to my titles effectively
what you can do In this particular code is in Java what you can do is provide your personalized presenter In such cases I am contacting it the icon header merchandise presenter extending home header presenter and you have two of the appropriate 3 diverse procedures at bare minimum amount a few unique functions
on generate watch holder on bind field holder and very own unbind watch holder on produce check out holder in this article inflate your structure and yet again since this can be a presenter you inflate format if throughout the presenter you will be in complete control of giving any perspective that you would like on Chunk perspective
holder you established the contents and of course on bite you absolutely free the sources so let's take a look suppose I would like To achieve this icons I'm able to do that by delivering a custom made look at by making use of a linear layout and which includes don't just a text watch which happens to be the
default but additionally an image look at then on by perspective holder again an occasion on the watch holder presenter and also the header product by obtaining the hider item I'm able to call Houses like get name and use Those people to iptvgreek.com/iptv-channels/belgique/ fill my text look at label and icon and of course
on you override have unbind watch holder to free any means that you've used these are the a few minimal kinds you have to overwrite but obviously there are Other people If you would like by way of example to customise how they really feel how they look how the person merchandise seem
whenever they're picked there is a person strategy that you could you could potentially override for that back in black in again in the activity it is possible to set the header presenter selector by supplying an occasion within your personalized presenter in my scenario I can not have their product presenter This is often an aged
illustration but why don't you employ it In any case as it's not quite nicely-regarded and it's yet again a very common issue good let's now look at Oprah OS integration you will find 4 important things which your application needs to do to properly combine in the Android Television set operational procedure and
deliver an enticing knowledge integrative look for media playback controls as activated through the assistant not to mention the house display screen integration to Perform subsequent and custom made channels let us Examine Each and every of one of these so media learned why properly because it will allow the users to find content material
by invoking playback from queries by voice perfectly How would you do it you make our app searchable by making use of a articles provider when the assistant performs question about the information supplier it could commence taking part in back again working with intents let's Consider this sample code listed here nearer so
I am making my very own look for conduct a content material supplier extending content material provider these illustrations are in cuddling I've a produce the query functionality And that i really have to return a cursor the best way I'll do the look for well that for ice you can do the look for anywhere you
want you may look for local material that you might have downloaded as part of your app you may execute queries about the server whichever you do at the tip you return a matrix cursor and their method to Exhibit your search engine results within just another search results now the issue is
even though you desire you can do this research in your provide you would like to get it done you need to do it fast mainly because Google will their method will exhibit an Ender android Television set will show there is certainly the effects as they appear so if all of the other apps are
speedier than yours all in their icons all of their banners will look initially than yours and that means you want to make it more rapidly next media controls why nicely simply because you want to enable the person to control playback by using voice How does one do it you integrate media sections
media sessions to deal with the callbacks so everytime you use the person works by using their distant to accomplish playback for the playback reviews things such as Participate in or pause or maybe smarter kinds like skip for the preceding channel or to skip to past episodes or skip to following which can be
employed by both of those movie and audio apps you can also do a thumbs up if you want which happens to be a lesser-recognized feature and how you try this again you offer your media session fallback by extending meters have to have a session compact callback and you can overwrite these
functions Do not Participate in on pause on halt on six you on skip to following on skip to previews and by Manage override all of these controls and Management your own player and by delivering this callback to the media session occasion your app now responds towards the assistant playback controls
now we're going to move to talk about the integrations with the Android TVs property monitor The main just one bling being the Engage in upcoming row mmm Therefore if you don't know the Android Tv set interface It is made of such rows the first row is actually a row in the
person favorites the people favourite apps plus the the quite initially row once the list of the consumers applications may be the Perform upcoming position and it's a job or simply a channel as we get in touch with it that aims to become this world wide Area to the customers written content throughout unique applications so
The theory in this article is usually that any any articles the person is intrigued on or perhaps the consumer interacted with but failed to completed your application can push this articles on the simple X row so why you keep the viewers engaged with content material and battle fascination or interesting or haven't finished
seeing for example liked video clips or up coming episodes of a series or even a movie that he has not concluded how do you do that properly you publish your check out next software to Android accessibility preview channel helper you won't have to boot or concern yourself with your content supplier oneself and what
is it nicely the Android CBS Enjoy upcoming row is up to date to mirror current engagement and put suitable articles for the viewers fingertips s contents are added more mature contents transfer to the right and in some unspecified time in the future in the user in no way interacts with these other contents they are removed from
the from their Engage in up coming function all over again let's Examine this code a little bit closer so Android X's enjoy the next system for what follows the Builder pattern so make a builder you established the check out following style you established a sort which may very well be a movie
or possibly a sequence or audio then you present your title and description as well as your poster art