diff --git a/app/src/leanback/AndroidManifest.xml b/app/src/leanback/AndroidManifest.xml index 3c3e3db1c..63fa51df9 100644 --- a/app/src/leanback/AndroidManifest.xml +++ b/app/src/leanback/AndroidManifest.xml @@ -31,7 +31,8 @@ android:name=".ui.activity.SplashActivity" android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation" android:exported="true" - android:screenOrientation="sensorLandscape"> + android:screenOrientation="sensorLandscape" + android:theme="@style/SplashTheme"> @@ -41,16 +42,21 @@ + + - - \ No newline at end of file diff --git a/app/src/leanback/java/com/fongmi/android/tv/ui/activity/SplashActivity.java b/app/src/leanback/java/com/fongmi/android/tv/ui/activity/SplashActivity.java index a5aade314..b788f5bc1 100644 --- a/app/src/leanback/java/com/fongmi/android/tv/ui/activity/SplashActivity.java +++ b/app/src/leanback/java/com/fongmi/android/tv/ui/activity/SplashActivity.java @@ -3,8 +3,10 @@ package com.fongmi.android.tv.ui.activity; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.SuppressLint; +import android.os.Bundle; import android.view.View; +import androidx.core.splashscreen.SplashScreen; import androidx.viewbinding.ViewBinding; import com.fongmi.android.tv.api.ApiConfig; @@ -22,6 +24,12 @@ public class SplashActivity extends BaseActivity { return mBinding = ActivitySplashBinding.inflate(getLayoutInflater()); } + @Override + protected void onCreate(Bundle savedInstanceState) { + SplashScreen.installSplashScreen(this); + super.onCreate(savedInstanceState); + } + @Override protected void initView() { mBinding.title.animate().alpha(1).setDuration(2000).setListener(onAnimationEnd()).start(); diff --git a/app/src/leanback/res/layout/dialog_config.xml b/app/src/leanback/res/layout/dialog_config.xml index 03983ca8c..78711d43b 100644 --- a/app/src/leanback/res/layout/dialog_config.xml +++ b/app/src/leanback/res/layout/dialog_config.xml @@ -30,7 +30,7 @@ android:layout_above="@+id/bottom" android:layout_alignStart="@+id/info" android:layout_marginBottom="16dp" - android:hint="@string/dialog_config_url_hint" + android:hint="@string/dialog_config_hint" android:imeOptions="actionDone" android:importantForAutofill="no" android:inputType="text" diff --git a/app/src/leanback/res/values-zh-rCN/strings.xml b/app/src/leanback/res/values-zh-rCN/strings.xml new file mode 100644 index 000000000..c9495ddde --- /dev/null +++ b/app/src/leanback/res/values-zh-rCN/strings.xml @@ -0,0 +1,23 @@ + + + + 点播 + 直播 + 搜索 + 推送 + 设定 + 最近观看 + 更新推荐 + + + 输入关键字… + 清空 + 远程 + + + 手机或电脑连接同一个局域网,扫描 QR Code 或浏览器输入地址\n%s + + + 手机或电脑连接同一个局域网\n扫描 QR Code 或浏览器输入地址\n%s + + \ No newline at end of file diff --git a/app/src/leanback/res/values-zh-rTW/strings.xml b/app/src/leanback/res/values-zh-rTW/strings.xml new file mode 100644 index 000000000..ccc413a5b --- /dev/null +++ b/app/src/leanback/res/values-zh-rTW/strings.xml @@ -0,0 +1,23 @@ + + + + 點播 + 直播 + 搜尋 + 推送 + 設定 + 最近觀看 + 更新推薦 + + + 輸入關鍵字… + 清除 + 遠端 + + + 手機或電腦連接同一個區域網路,掃描 QR Code 或瀏覽器輸入網址\n%s + + + 手機或電腦連接同一個區域網路\n掃描 QR Code 或瀏覽器輸入網址\n%s + + \ No newline at end of file diff --git a/app/src/leanback/res/values/strings.xml b/app/src/leanback/res/values/strings.xml new file mode 100644 index 000000000..ff9446235 --- /dev/null +++ b/app/src/leanback/res/values/strings.xml @@ -0,0 +1,23 @@ + + + + Vod + Live + Search + Push + Setting + History + Recommend + + + Keywords… + Clear + Remote + + + Connect phone or pc to LAN and scan QR Code or enter the URL in browser\n%s + + + Connect phone or pc to LAN and Scan QR Code or enter the URL in browser\n%s + + \ No newline at end of file diff --git a/app/src/leanback/res/values/styles.xml b/app/src/leanback/res/values/styles.xml index ddaca3030..4fd95c061 100644 --- a/app/src/leanback/res/values/styles.xml +++ b/app/src/leanback/res/values/styles.xml @@ -13,4 +13,10 @@ true + + diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index d96709802..25e88a3f4 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -7,26 +7,9 @@ 正在加载配置 - - 点播 - 直播 - 搜索 - 推送 - 设定 - 最近观看 - 更新推荐 - 上次看到%s - - 输入关键字… - 清空 - 远程 - - - 手机或电脑连接同一个局域网,扫描 QR Code 或浏览器输入地址\n%s - 站源:%s 年份:%s @@ -58,8 +41,7 @@ 确定 取消 - 请输入配置接口 - 手机或电脑连接同一个局域网\n扫描 QR Code 或浏览器输入地址\n%s + 请输入配置接口 配置取得失败 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index d855b02d6..8276ea7f6 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -7,26 +7,9 @@ 正在載入配置 - - 點播 - 直播 - 搜尋 - 推送 - 設定 - 最近觀看 - 更新推薦 - 上次看到%s - - 輸入關鍵字… - 清除 - 遠端 - - - 手機或電腦連接同一個區域網路,掃描 QR Code 或瀏覽器輸入網址\n%s - 站源:%s 年份:%s @@ -58,8 +41,7 @@ 確定 取消 - 請輸入配置接口 - 手機或電腦連接同一個區域網路\n掃描 QR Code 或瀏覽器輸入網址\n%s + 請輸入配置接口 配置取得失敗 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7a4a77fe6..62cb20e56 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -7,26 +7,9 @@ Loading configuration - - Vod - Live - Search - Push - Setting - History - Recommend - Last seen %s - - Keywords… - Clear - Remote - - - Connect phone or pc to LAN and scan QR Code or enter the URL in browser\n%s - Site: %s Year: %s @@ -58,8 +41,7 @@ OK Cancel - Please enter the configuration url - Connect phone or pc to LAN and Scan QR Code or enter the URL in browser\n%s + Please enter the configuration url Configuration get failed