| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- ~ Copyright 2022 The TensorFlow Authors. All Rights Reserved.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
- <resources>
- <!-- Base application theme. -->
- <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
- <item name="android:windowBackground">@drawable/splash_background</item>
- <item name="android:windowNoTitle">true</item>
- <item name="android:windowFullscreen">true</item>
- </style>
- <!-- 启动主题:manifest 里 application 实际用的是它。
- 完全沿用平台主题 Theme.NoTitleBar.Fullscreen(Qt/Felgo 依赖它的全屏与无标题行为),
- 只把窗口背景由默认黑色换成启动页图层:浅绿底 + 居中内容块
- (标题 / 圆点 / 进度条 / "启动中...",drawable-nodpi/splash_logo.png)。
- 单独派生一个 style 而不是直接把父主题换成 AppTheme,是为了不动
- Theme.AppCompat.* 这套父主题 —— Qt 会读 android.app.extract_android_style
- 来决定窗口样式,贸然换父主题可能带来状态栏/Insets 行为变化。
- 注意:不能用 res/mipmap/logo.png —— 那是 TensorFlowLite 官方标志(模板遗留资源)。 -->
- <style name="SplashTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
- <item name="android:windowBackground">@drawable/splash_background</item>
- <item name="android:windowNoTitle">true</item>
- <item name="android:windowFullscreen">true</item>
- </style>
- <style name="BottomSheetSpinnerItemStyle" parent="Widget.AppCompat.Light.DropDownItem.Spinner">
- <item name="android:textSize">@dimen/bottom_sheet_text_size</item>
- </style>
- </resources>
|