IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...
My title is Casio I'm a developer relations below at Google I work generally with Android Television and these days We will mention most effective tactics for partaking apps which can be kind of like and gay embraces a great deal of things It is type of a generic title so to
slim it down here's the things that We'll look at I'm going to start off by indicating a small amount of the point out of house and living room as we recognize listed here Google then I will move to mention some Android TV Basic principles which numerous huge significant
applications to missus and and and it has some errors in there and no participating application and I bought terrific a fantastic participating app start of obtaining the entire basics suitable then we are going to talk a little bit regarding the linkback library and among the list of main thoughts that
Everyone often has which can be how do I personalize the Leanback library it isn't going to fit essentially the what I need exactly can I modify it may I customize it spoiler notify the answer is mostly Of course and We will communicate a bit about that after which I'm heading
to take a look at the OS integration they'll discuss how we could integrate with Android TVs homescreen to aspect our information we are going to mention discoverability via lookup and engaging While using the support so commencing which has a condition of residence and living room for us at
Google so technology has adjusted how we connect with the home in this article at Google we think that another wave the following step forward in technologies for the home will come from the intersection of components software program and synthetic intelligence a single your private home to not only be smarter together with your
dwelling don't just needs to be more handy but we all we wish are your property to work for you and bringing collectively hardware computer software and synthetic intelligence to supply an incredible Spurs to our users which of course is anchored through the Google assistant the beneficial Google program that
brings jointly search that provides together media and all the media factors and the entire media contact points at Google and when we are talking about media there is absolutely no much better location to take in media and to watch media than the bigger screen your home Hence the Android Television set is
at the center of your media during the Google assistant ability in your own home you can have your good telephone your wise car or truck your Good speakers plus the Android Television brings everything jointly in one location media online games music and all of those practical experience jointly into a single major monitor within your
living room Android TV seen plenty of momentum lately six outside of the highest six out of ten top rated Clever Television manufactures are shipping and delivery TVs with Android TV and more than a hundred and forty fork out TV operators are shippi create bins with android Television also this has
been a large enhance in the last couple of years which fantastic momentum that we have been seeing on Android Tv set extends to builders at the same time we lately announced that We've now in excess of 5,000 apps on Google Enjoy for Android TV above a thousand of them getting for from steaming
streaming information vendors so there is a ton happening Android TV and at Google we've been concentrating loads of initiatives in Android Tv set so let us mention an incredible developing wonderful partaking Android Television set applications so to start out what makes an entry TV application or an Android application
and Android Television set application as a consequence of training course currently being Android suggests which you can reuse your whole abilities as an Android developer to build an Android Television set application but what can make it a Television set app nicely get started with the basic principles You should declare your characteristics and I realize this
is absolutely primary but I would like you to definitely genuine to touch on this mainly because as I mentioned There are plenty of massive apps that skips or misses Some Basic principles and no wonderful participating application functions in the event you skip the basic principles so naturally the initial feature that
you might want to declare is you don't strike my touch display screen since the final time I checked persons don't go and touching their residence display TVs their family room Television set so If your detail their fingers are interact using a remote control also you have to declare that you choose to
use linkback this does not automatically check with the link back library link back again is this generic expression that we use to determine this working experience of seeing TV which differs from employing a mobile product since you're employing it in a length in the website link again placement inside a website link
again circumstance so You need to declare that subsequent You will need to declare your software banner just level I'm going to speak a bit more details on way that is something that we normally have issues with and finally you have to declare your Android Tv set intent which is not
the primary tent so you declare your Leanback launcher so Poona you might be putting out jointly you declare the characteristics that you just use you declare the banner and you simply declare your website link back in intent a person two a few your features your banner within our backlink again intent but I wish to
chat a lot more a little bit more details on the application banner by itself that's the banner when you at any time utilized Android Television you know how it appears to be but Here is the matter in several numerous circumstances you would possibly glance wrong and in lots of applications we've seen seeking Erroneous amongst these types of examples is
if you offer a mobile icon in this article Android Television application what transpires is that the icon will probably be scaled and place Within the dim rectangle so it appears like this Odd mixture of a square icon inside of a rectangle spot this comes about whenever you give a cell icon 512 by
512 inside your adorable xhdpi folder to ensure that's Incorrect do not do this also in the event you offer any banner You can find much larger than 300 320 by one hundred eighty doesn't subject by which folder you put it it is not likely to look appropriately this is not in this instance We've got a 9
and 16 by 540 pixel impression in The remainder drawable folder it would not operate if you put in another area so listed here I contain the identical image set within the drawable way Tv set DPI also does not look the right way yet again how to get it done is exactly three hundred 320 by
a hundred and eighty pixels in The remainder drawable xhdpi folder this fashion your banner looks correctly and remembering that our banner is used to request your application illustration but It is also utilized in other places like as an example during the plain x roll so probably nailing it down effectively is critical last but not least if
you want your application to be published for within the Play Shop for Android Tv set There's a Distinctive decide-in distribution that you've got to examine if you do not try this it isn't really going to go for that Participate in Retail outlet so inside your Participate in console You should come across
this distributor application on Android Television it is not enough to show it isn't really sufficient to show you have a connection back launcher you even have to seek out this distributor on Television set and Check out that box and The key reason why for that may be there are many plant lots of hybrid platforms
or multi-System ecosystem progress environments that instantly suggests that everything is enabled like a Leanback launcher for example but you would possibly never have really tested none on Television by utilizing these these advancement natural environment so that does not necessarily suggest it will get the job done effectively with a Tv set so That is why
we asked you to check that especially checkbox superior so that that these are definitely the basic principles these are typically the pretty bare-bones you have to nail let us look at the Leanback library now of course the linkback library is this this set of widgets significant level widgets that we provide
they affirm to your materialized specs and they offer an excellent experience for making use of Television set at a length We've widgets for the house display https://iptvgreek.com which contains for example rows and a navigation drawer we have widgets for articles aspects We have now widgets to get a ton of different conditions but
probably the most Regular concern that we listen to about the Leanback library is very well the widgets that you choose to offer won't in shape 100 percent what you would like so are there any approaches to customise the Leanback library well The solution is yes you will discover basically two techniques you can go about
customizing the Leanback library sorry you may just only alter the shades and Proportions values as part of your app or else you can offer custom made presenters so let's talk a bit about hues and Proportions if we go exclusively if we glance especially for the Browse fragment which is the just one
which is useful for numerous homescreen from your home display screen of key purposes which is the one that shows up sidebar navigation and the rows of contents you will find like Just about twenty properties only concerning the Look through fragment that you could modify in the callers and interior Proportions values things like
brown like padding like title stereos roll kinds and these applies also to your navigation tower to every of the individual playing cards and so forth up to now so for instance can I Regular question am i able to make my navigation drawer shorter Sure you may you need not create code
for that just by changing the Marg's along with the margin pennies and other Proportions you can do that Sure we really have to do an improved job at documenting these Attributes often they're not automatically effortless to find However they exist and you can go a great distance just by
modifying the value of those properties now in some instances that is not ample And so the linkback library It can be based upon MVP or Product View sample which is amongst the numerous mV whichever dad and mom and many of These widgets they help you give a personalized presenter I'm not
about to dwell into the details about what makes what is the distinction between MVP or MVC or mvvm but The reality is that on MVP your presenter functions as being the glue in between the product as well as perspective but It is also responsible for initiating or inflating in Android language the view
meaning that by offering a custom made presenter you might be essentially in comprehensive control of what you would like it to seem like what you would like that widget to seem like simply because you can provide a custom made perspective so let us Check out an illustration yet again I'll utilize the
Browse fragment as it's the one which's mainly used as the most crucial display screen of apps the Look through fragment it includes and it expects an array item adapter for precise demonstrate the person record rows and the individual record rows one's a header top plus a article adapter etcetera etc but
I will focus on the upper ident presenter that is the one that we can use to customise how the navigation drummer seems so such as say I want to have my navigation drawer and I would like to Exhibit icons near my textual content near to my titles properly
what you are able to do In this particular code is in Java what you can do is give your personalized presenter In cases like this I am contacting it the icon header merchandise presenter extending house header presenter and you've got two of the ideal three various strategies at bare bare minimum 3 various features
on make see holder on bind area holder and have unbind view holder on make look at holder listed here inflate your layout and again since this can be a presenter you inflate format if inside the presenter you are in finish control of providing any perspective that you would like on Chunk see
holder you set the contents and naturally on Chunk you absolutely free the means so let's Have a look suppose I need To do that icons I'm able to do this by providing a tailor made see through the use of a linear format and including not simply a text view and that is the
default and also an image view then on by view holder yet again an instance on the see holder presenter and also the header merchandise by receiving the hider merchandise I'm able to simply call Houses including get name and use Those people to fill my text look at label and icon and naturally
on you override individual unbind perspective holder to absolutely free any assets that you've applied these are the a few minimum ones you have to overwrite but certainly you can find Some others If you need by way of example to customise how they really feel how they look how the individual objects look
every time they're chosen there is certainly one particular strategy that you can you can override for that again in black in again in the action you'll be able to set the header presenter selector by providing an instance of your respective customized presenter in my situation I can not have their merchandise presenter This really is an previous
case in point but why Really don't you utilize it either way because it's not pretty properly-acknowledged and it's again a quite common concern good let's now take a look at Oprah OS integration there are actually four important things that your app must do to properly integrate of the Android Tv set operational program and
offer an enticing experience integrative look for media playback controls as activated via the assistant and of course the house display integration to Enjoy upcoming and personalized channels let's take a look at Each and every of one of these so media found out why effectively mainly because it permits the users to discover information
by invoking playback from queries by voice well How would you do it you make our application searchable by utilizing a written content company in the event the assistant performs query about the articles company it might begin taking part in back again working with intents let us Have a look at this sample code right here closer so
I am building my own search accomplish a content service provider extending content material provider these examples are in cuddling I've a create the question purpose and I have to return a cursor just how I'm going to do the research well that for ice you are able to do the look for everywhere you
want you may look for community articles that you might have downloaded inside your application you are able to accomplish queries around the server no matter what you need to do at the top you come back a matrix cursor and their process to Exhibit your search engine results inside any other search engine results now the point is
Regardless that you need you are able to do this lookup on the serve you should do it you need to get it done rapidly since Google will their program will show an Ender android Tv set will exhibit there's the final results as they appear so if most of the other apps are
more quickly than yours all in their icons all of their banners will appear initially than yours this means you intend to make it quicker upcoming media controls why nicely as you wish to enable the user to control playback by making use of voice How will you get it done you integrate media sections
media sessions to take care of the callbacks so when you use the consumer employs their distant to complete playback towards the playback opinions things such as Enjoy or pause or even smarter kinds like skip on the earlier channel or to skip to previous episodes or skip to subsequent which can be
employed by both equally online video and audio applications you can even do a thumbs up if you want that is a lesser-identified feature and the way you do that once again you provide your media session fallback by extending meters have to have a session compact callback and you may overwrite these
features Really don't Participate in on pause on end on six you on skip to following on skip to previews and by Handle override every one of these controls and Management your individual player and by providing this callback for your media session occasion your app now responds towards the assistant playback controls
now we're going to go to take a look at the integrations with the Android TVs residence display screen A very powerful a single bling staying the play up coming row mmm so if you do not know the Android Television interface It is designed of such rows the 1st row is really a row with the
user favorites the people favourite apps and also the the very first row after the list of the customers apps may be the Enjoy next purpose and it's a job or a channel as we phone it that aims being this global Room for that people content across unique apps so
The thought right here is the fact that any any material the person is interested on or the consumer interacted with but failed to concluded your app can press this material for the basic X row so why you keep the viewers engaged with content and battle desire or exciting or have not concluded
seeing like favored video clips or upcoming episodes of the sequence or perhaps a Motion picture that he hasn't finished How will you try this perfectly you publish your enjoy future application to Android obtain preview channel helper you won't need to boot or worry about your content provider your self and what
is it properly the Android CBS Participate in next row is current to replicate the latest engagement and set appropriate articles in the viewers fingertips s contents are extra older contents move to the right and sooner or later of the person in no way interacts with these other contents They are really removed from
the from their Enjoy upcoming purpose again let's Look into this code a bit nearer so Android X's check out another system for what follows the Builder pattern so create a builder you set the enjoy future form you set a sort which may very well be a Film
or a sequence or music Then you certainly present your title and outline and also your poster art URI it's also vital to set the last time of engagement mainly because this photograph may be a bit far too way too also smaller but in case you Test in case you look at the second product
during