IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...
My identify is Casio I am a developer relations below at Google I function typically with Android Television set and right now we're going to mention greatest methods for engaging applications which happens to be type of like and gay embraces many stuff It truly is sort of a generic title so to
slim it down here's the things that We will discuss I'm going to start by expressing a little bit of the state of household and family room as we fully grasp listed here Google then I'm going to go to take a look at some Android Television Fundamental principles which a lot of huge major
apps to missus and and and it has some problems in there and no participating app and I obtained wonderful a terrific engaging app get started of receiving every one of the Fundamentals correct then we're going to speak a little bit with regard to the linkback library and among the list of important inquiries that
All people normally has which happens to be how do I personalize the Leanback library it does not suit necessarily the what I want specifically am i able to alter it could possibly I customise it spoiler alert The solution is mostly Certainly and We will chat a bit about that and afterwards I am heading
to discuss the OS integration they'll talk about how we can easily combine with Android TVs homescreen to function our content material we are going to take a look at discoverability through look for and engaging Using the help so beginning having a point out of home and family room for us at
Google so technology has adjusted how we connect with the home listed here at Google we feel that another wave the next leap forward in technologies for the home will originate from the intersection of components program and artificial intelligence 1 your property to not just be smarter along with your
residence don't just ought to be a lot more handy but many of us we want are your private home to be just right for you and bringing alongside one another components software program and synthetic intelligence to deliver an incredible Spurs to our people which naturally is anchored through the Google assistant the valuable Google system that
provides together search that brings jointly media and each of the media points and each of the media Call details at Google and when we're referring to media there is absolutely no improved destination to consume media and to watch media than The larger display your home so the Android Television is
at the center of the media within the Google assistant electric power at your house you can have your wise cell phone your intelligent auto your Wise speakers along with the Android Television set brings every thing together in one position media video games tunes and all those experience together into one particular large screen in the
front room Android Television witnessed a lot of momentum recently 6 outside of the best six from 10 prime Intelligent Television manufactures are transport TVs with Android Television and above 100 and forty pay TV operators are shippi build packing containers with android Television set too this has
been a large enhance over the past couple of years and this terrific momentum that we have been observing on Android Tv set extends to developers in addition we lately introduced that We now have now more than five,000 apps on Google Perform for Android TV about a thousand of these becoming for from steaming
streaming content companies so there is a whole lot occurring Android Tv set and at Google we are focusing a lot of initiatives in Android Television so let's speak about a fantastic creating excellent participating Android TV applications so to get started what will make an entry TV application or an Android app
and Android Television set application on account of course remaining Android implies you can reuse all your techniques as an Android developer to produce an Android TV application but what causes it to be a Television application effectively begin with the basics You need to declare your capabilities and I realize this
is really essential but I need you to definitely legitimate to touch on this for the reason that as I discussed There are plenty of big applications that skips or misses A few of these Basic principles and no good engaging app works in case you miss out on the basics so needless to say the first aspect that
you need to declare is that you Really don't strike my contact display screen since the past time I checked folks Do not go and touching their residence monitor TVs their front room TV so When the issue their fingers are interact employing a remote control also You need to declare that you
use linkback this doesn't always consult with the backlink back again library connection back is this generic phrase that we use to outline this knowledge of looking at Television set which differs from employing a mobile device since you're utilizing it in a length in a hyperlink back place in a very website link
again problem so you have to declare that next You should declare your application banner just issue I will chat a little bit more details on manner which happens to be something which we often have problems with And eventually It's important to declare your Android Tv set intent which isn't
the leading tent which means you declare your Leanback launcher so Poona you're putting out collectively you declare the features that you simply use you declare the banner and you also declare your hyperlink back in intent 1 two 3 your options your banner within our website link back again intent but I need to
discuss far more a bit more about the app banner itself that's the banner in the event you ever employed Android Television you know how it appears to be like but here's the point in several quite a few conditions you could glance Mistaken and in lots of applications we have seen hunting Incorrect certainly one of these illustrations is
whenever you supply a mobile icon here Android TV application what happens would be that the icon are going to be scaled and put inside the dim rectangle so it looks like this Strange blend of a sq. icon inside a rectangle spot this happens after you offer a mobile icon 512 by
512 in the lovely xhdpi folder to ensure's Completely wrong never try this also when you give any banner there is larger than 300 320 by a hundred and eighty would not matter by which folder you put it it's actually not heading to appear the right way this is not in this example We've a nine
and 16 by 540 pixel image in the rest drawable folder it doesn't perform if you set in a different put so in this article I have the identical image place in the drawable way Tv set DPI also does not look appropriately again the way to get it done is precisely 300 320 by
one hundred eighty pixels in The remainder drawable xhdpi folder this fashion your banner appears to be appropriately and remembering that our banner is accustomed to question your app illustration but It is also made use of somewhere else like one example is while in the simple x roll so maybe nailing it down appropriately is critical ultimately if
you wish your software to get published for during the Engage in Retail store for Android TV You will find there's Specific opt-in distribution that you have to check If you don't try this it's actually not likely to go to the Participate in Retail outlet so within your Perform console You should obtain
this distributor application on Android Television it is not enough to point out it is not sufficient to point out that you've a link again launcher you even have to find this distributor on Tv set and check that box and The main reason for that is certainly there are quite a few plant a lot of hybrid platforms
or multi-platform surroundings progress environments that quickly suggests that everything is enabled just like a Leanback launcher by way of example but you could never have actually examined none on Television set through the use of these these growth surroundings so that doesn't essentially suggest it will function properly with a TV so This is why
we asked you to examine that specially checkbox excellent to ensure that they are the basic principles these are generally the really bare-bones that you've to nail let's look at the Leanback library now naturally the linkback library is this this list of widgets high stage widgets that we provide
they verify into the materialized specs and they supply an awesome expertise for using Tv set at a length We've widgets for the home display which contains by way of example rows plus a navigation drawer We've widgets for written content specifics We now have widgets to get a large amount of various circumstances but
quite possibly the most Regular query that we hear with regards to the Leanback library is properly the widgets that you choose to present does not healthy 100 per cent what you need so are there any approaches to customize the Leanback library nicely The solution is Certainly you'll find generally two approaches you can go about
customizing the Leanback library sorry you can just merely change the colors and dimensions values in your app otherwise you can provide custom made presenters so let's converse a bit about colours and dimensions if we go exclusively if we glance exclusively for the Search fragment which is the one particular
that's useful for a lot of homescreen from your home display screen of primary purposes that is the one that exhibits up sidebar navigation along with the rows of contents you will discover like Virtually twenty Attributes only with regards to the Browse fragment you can modify within your callers and interior dimensions values things such as
brown like padding like title stereos roll designs and these applies also for the navigation tower to every of the person cards and so on so far so one example is am i able to frequent dilemma can I make my navigation drawer shorter yes it is possible to you need not publish code
for that just by modifying the Marg's and the margin pennies and also other dimensions you can do that yes https://iptvgreek.com we have to do an even better job at documenting these properties often they are not always quick to find However they exist and you may go a good distance just by
modifying the worth of these Attributes now occasionally that is not plenty of so the linkback library It can be according to MVP or Design Watch sample which is without doubt one of the several mV what ever dad and mom and lots of of Individuals widgets they permit you to provide a customized presenter I'm not
planning to dwell into the details about what would make what is the distinction between MVP or MVC or mvvm but the fact is that on MVP your presenter acts given that the glue between the design and the see but It is also liable for initiating or inflating in Android language the look at
which suggests that by furnishing a personalized presenter you're truly in finish Charge of what you wish it to look like what you would like that widget to look like as you can offer a custom made look at so let's Check out an illustration once again I'll utilize the
Browse fragment because it's the one that's mostly employed as the key display of apps the Look through fragment it has and it expects an array object adapter for genuine clearly show the person checklist rows and the individual record rows a person's a header peak and also a publish adapter and so forth and many others but
I will focus on the higher ident presenter which can be the one which we will use to customise how the navigation drummer appears to be like so by way of example say I would like to obtain my navigation drawer and I would like to Screen icons near my textual content near to my titles nicely
what you are able to do On this code is in Java what you are able to do is present your custom presenter In such a case I am calling it the icon header merchandise presenter extending house header presenter and you've got two of the right three distinct procedures at bare bare minimum a few different capabilities
on create watch holder on bind subject holder and have unbind perspective holder on build view holder here inflate your structure and yet again for the reason that this is the presenter you inflate layout if throughout the presenter you might be in comprehensive control of providing any look at that you might want on Chunk watch
holder you set the contents not to mention on Chunk you free the assets so let us take a look suppose I want To do that icons I'm able to try this by furnishing a custom made look at by making use of a linear format and like not simply a text watch and that is the
default but additionally a picture see then on by look at holder again an occasion of your watch holder presenter as well as the header item by getting the hider item I can get in touch with Attributes like get identify and use Individuals to fill my textual content watch label and icon and naturally
on you override very own unbind check out holder to no cost any resources that you've made use of these are typically the 3 bare minimum kinds you have to overwrite but certainly there are others If you would like for instance to personalize how they really feel how They give the impression of being how the person things glimpse
once they're picked you will find one technique you could you can override for that again in black in back with your activity you can established the header presenter selector by supplying an instance of the personalized presenter in my circumstance I can't have their merchandise presenter This is often an previous
instance but why Never you use it In either case as it's not very nicely-recognized and It truly is again a very common concern good let's now speak about Oprah OS integration you'll find 4 big things that your application should do to correctly combine of your Android TV operational procedure and
deliver an engaging knowledge integrative search media playback controls as activated through the assistant and of course the house monitor integration to Enjoy subsequent and tailor made channels let us Check out Every of one of these so media found out why perfectly because it permits the customers to discover content material
by invoking playback from queries by voice well How would you do it you make our app searchable by making use of a written content company once the assistant performs query to the content supplier it might commence participating in back employing intents let's Have a look at this sample code here closer so
I am producing my very own lookup execute a material service provider extending written content company these illustrations are in cuddling I've a produce the query function And that i should return a cursor how I'm going to do the research very well that for ice you are able to do the research everywhere you
want you are able to check for neighborhood material that you might have downloaded in the application you can conduct searches over the server no matter what you do at the tip you come back a matrix cursor and their technique to Exhibit your search results in any other search results now the point is
Despite the fact that you need you are able to do this lookup on your own serve you should do it you ought to do it speedy mainly because Google will their system will show an Ender android Television set will clearly show you can find the effects as they seem so if most of the other apps are
more rapidly than yours all in their icons all of their banners will surface 1st than yours so that you want to make it faster next media controls why effectively as you would like to allow the user to control playback through the use of voice how do you get it done you combine media sections
media classes to handle the callbacks so whenever you use the person takes advantage of their distant to accomplish playback on the playback reviews things such as Enjoy or pause and even smarter ones like skip to your previous channel or to skip to past episodes or skip to subsequent that may be
employed by equally movie and audio apps you can also do a thumbs up if you want that's a lesser-regarded function and the way you try this yet again you supply your media session fallback by extending meters have to have a session compact callback and you will overwrite all of these
capabilities Do not Engage in on pause on halt on six you on skip to future on skip to previews and by Manage override most of these controls and Manage your individual player and by furnishing this callback to the media session instance your application now responds towards the assistant playback controls
now we're going to go to talk about the integrations Using the Android TVs residence display The main one bling getting the Participate in following row mmm so if you do not know the Android TV interface it's built of those rows the first row is often a row of your
consumer favorites the end users preferred apps and also the the very first row after the listing of the end users apps will be the play following purpose and it is a purpose or possibly a channel as we simply call it that aims to get this world Area for your people content material throughout unique apps so
The thought listed here is always that any any articles that the user is fascinated on or even the user interacted with but didn't finished your app can drive this material for the simple X row so why you keep the viewers engaged with material and battle curiosity or intriguing or haven't finished
looking at including liked films or next episodes of a sequence or maybe a Film that he hasn't concluded How would you do that well you publish your look at next application to Android entry preview channel helper you don't need to boot or concern yourself with your articles company oneself and what
is it effectively the Android CBS Participate in up coming row is current to replicate modern engagement and place applicable content material in the viewers fingertips s contents are extra older contents shift to the right and in some unspecified time in the future of the person in no way interacts Using these other contents They are really removed from
the from their Participate in subsequent position again let's Check out this code a bit nearer so Android X's enjoy the subsequent system for what follows the Builder sample so make a builder you set the view future variety you established a sort which can be a movie
or perhaps a collection or audio Then you certainly provide your title and outline and also your poster art URI It is also essential to established the final time of engagement for the reason that this photo may very well be slightly far too way too also smaller but for those who Examine when you look