Skip to content

Commit

Permalink
支持原生Android TV启动器上显示
Browse files Browse the repository at this point in the history
添加leanback_launcher属性
  • Loading branch information
Eanya-Tonic committed Jan 20, 2024
1 parent 6afc235 commit 302af66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />

<application
android:allowBackup="true"
Expand All @@ -19,14 +22,14 @@
android:name=".MainActivity"
android:banner="@drawable/logo"
android:exported="true"
android:icon="@drawable/logo"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:logo="@drawable/logo"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
Expand Down
Binary file added app/src/main/res/drawable/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 302af66

Please sign in to comment.