All Projects → EddyVerbruggen → nativescript-android-tv

EddyVerbruggen / nativescript-android-tv

Licence: other
A little PoC demonstrating code sharing between Android Phone and TV apps

Programming Languages

typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to nativescript-android-tv

nativescript-fabric
Handling App URLs in nativescript apps
Stars: ✭ 29 (+11.54%)
Mutual labels:  nativescript
nativescript-calendar
📅 NativeScript plugin to Create, Delete and Find Events in the native Calendar
Stars: ✭ 44 (+69.23%)
Mutual labels:  nativescript
nativescript-vue-multi-drawer
A NativeScript-Vue component for creating multiple side drawers (4 sides supported)
Stars: ✭ 45 (+73.08%)
Mutual labels:  nativescript
nativescript-react
Build native application using React and Nativescript.
Stars: ✭ 14 (-46.15%)
Mutual labels:  nativescript
nativescript-swipe-card
Swipe Card plugin for nativescript
Stars: ✭ 21 (-19.23%)
Mutual labels:  nativescript
nativescript-vue-router
A simple router implementation that is suitable for NativeScript-Vue.
Stars: ✭ 14 (-46.15%)
Mutual labels:  nativescript
nativescript-auth0
Nativescript Auth0 https://auth0.com/ social authentication plugin
Stars: ✭ 57 (+119.23%)
Mutual labels:  nativescript
FireFiles
Powerful Android File Manager for everything that runs on Android OS (Android TV, Android Watch, Mobile, etc)
Stars: ✭ 37 (+42.31%)
Mutual labels:  android-tv
nativescript-http
The best way to do HTTP requests in NativeScript, a drop-in replacement for the core HTTP with important improvements and additions like proper connection pooling, form data support and certificate pinning
Stars: ✭ 32 (+23.08%)
Mutual labels:  nativescript
nativescript-printer
📠 Send an image or the screen contents to a physical printer
Stars: ✭ 33 (+26.92%)
Mutual labels:  nativescript
ui
Add right-to-left support to the NativeScript framework
Stars: ✭ 22 (-15.38%)
Mutual labels:  nativescript
AndroidTVMovieParadise
Movie Paradise is an Android TV 📺 app. ExoPlayer, Dagger 2, RxJava libraries are used.
Stars: ✭ 68 (+161.54%)
Mutual labels:  android-tv
sound-on-fire
🔊☁️ 🔥📺 A Flutter based SoundCloud App for your Fire TV
Stars: ✭ 46 (+76.92%)
Mutual labels:  android-tv
nativesapp
Simple WhatsApp clone just for training purposes - Course Angular Native at www.udemy.com/angular-native
Stars: ✭ 19 (-26.92%)
Mutual labels:  nativescript
nativescript-wear-os
Consolidated repo for WearOS with NativeScript
Stars: ✭ 27 (+3.85%)
Mutual labels:  nativescript
kaltura-player-android
Kaltura Player is a rich, easy to integrate and easy to use video player for all media types and ad scenarios you need. - based on Google ExoPlayer
Stars: ✭ 22 (-15.38%)
Mutual labels:  android-tv
nativescript-performance-monitor
⚡ Proof your app maintains 60-ish FPS by collecting data or showing it on screen with this NativeScript plugin!
Stars: ✭ 21 (-19.23%)
Mutual labels:  nativescript
nativescript-task-app
An example task management NativeScript Angular app. Demonstrates ngrx effects, lazy-loading modules, offline storage and app branding.
Stars: ✭ 26 (+0%)
Mutual labels:  nativescript
nativescript-homekit
🏡 HomeKit plugin for your fancy NativeScript app
Stars: ✭ 23 (-11.54%)
Mutual labels:  nativescript
qmlcore-tv
Smart TV PureQML plugin (LG, Samsung, OperaTV, AndroidTV, Hisense)
Stars: ✭ 23 (-11.54%)
Mutual labels:  android-tv

NativeScript ❤️ Android TV

What?

Unsurprisingly Android TV is very much like the Android you know and love, and since NativeScript already runs like a champ on Android, you can easily support Android TV as well!

How?!

I found the easiest way to support TV devices is adding this line to your AndroidManifest.xml and figuring out at runtime which UI to load.

Wait.. does that mean I have to duplicate code?

You don't have to duplicate anything, but you really don't want to reuse phone layouts on your TV for obvious reasons. So what this PoC does, is using a main-page.xml for Phone / Tablet, and main-page-tv.xml for TV to accomodate for the additional screen real estate - but they share the same main-view-model.ts.

Can I use Angular or Vue as well?

Sure you can, as those eventually render the same UI widgets as regular NativeScript does.

And what about iOS?

Nothing special there - iOS is powered by the same code that makes the Android Phone / Tablet version tick.

Sorry, I meant Apple TV

Ah, OK, ehm, please refer to this blog.

Lemme try

Create an Android TV emulator with the AVD manager inside Android Studio (if you're not so lucky to own a real device), then:

git clone https://github.com/EddyVerbruggen/nativescript-android-tv
cd nativescript-android-tv
npm i
tns run android
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].