Implementing and Designing Android TV Applications

I want to create a TV ready application. Since this is still a quiet new topic, I ask myself the following questions:

  • What do I need to keep in mind for a good TV?
  • Can I share the code with my TV application?
  • Can I reuse layouts, strings, and other resources?

In addition, I have problems currently finding useful resources on the Internet, especially for Amazon Fire TV. I found many resources that were obsolete or moved and are now links of death.

Are there any recommendations for implementing great apps?

+4
source share
3

.


?

Android . Amazon . , , .

:


-?

. , , .

Android TV :

<category android:name="android.intent.category.LEANBACK_LAUNCHER" />

.

Amazon -, , , , . , .


, ?

, . , -w960dp, . seperat .


?

, , differres resouces .

, :

<TextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:text="@string/hello"/>

:

< > /strings.xml:

<string name="hello">Hello mobile</string>

< > -w600dp/strings.xml:

<string name="hello">Hello tablet</string>

< > -w960dp/strings.xml:

<string name="hello">Hello TV</string>

( ).

+6

, protoype .

, - HTML/JS, .

"10-"

0
source

All Articles