Skip to content

Commit 63629b8

Browse files
style(app): 修改应用主题样式- 将应用主题从 Theme.KotlinLiteKit 修改为 Theme.KotlinLiteKit.NoActionBar
- 更新 themes.xml 文件,调整样式继承结构- 此修改旨在移除 ActionBar,以适应现代 Android 应用设计
1 parent f748163 commit 63629b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
android:label="@string/app_name"
3535
android:roundIcon="@mipmap/ic_launcher_round"
3636
android:supportsRtl="true"
37-
android:theme="@style/Theme.KotlinLiteKit"
37+
android:theme="@style/Theme.KotlinLiteKit.NoActionBar"
3838
android:usesCleartextTraffic="true">
3939
<activity
4040
android:name=".view.WelcomeActivity"

app/src/main/res/values/themes.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<!-- Base application theme. -->
33
<!-- android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"--> <!-- 圆方紫色按钮白字 -->
44
<!-- android:theme="@style/Theme.AppCompat.Light.NoActionBar"--> <!-- 默认 -->
5-
<style name="Base.Theme.KotlinLiteKit" parent="Theme.MaterialComponents.Light.NoActionBar">
5+
<style name="Base.Theme.KotlinLiteKit.NoActionBar" parent="Theme.MaterialComponents.Light.NoActionBar">
66
<!-- Customize your light theme here. -->
77
<item name="colorPrimary">@color/mainColor</item>
88
</style>
99

10-
<style name="Theme.KotlinLiteKit" parent="Base.Theme.KotlinLiteKit" />
10+
<style name="Theme.KotlinLiteKit.NoActionBar" parent="Base.Theme.KotlinLiteKit.NoActionBar" />
1111

12-
<style name="Theme.BigImageActivity" parent="Theme.KotlinLiteKit">
12+
<style name="Theme.BigImageActivity" parent="Theme.KotlinLiteKit.NoActionBar">
1313
<item name="android:windowAnimationStyle">@style/ActivityInOutAnimation</item>
1414
</style>
1515
</resources>

0 commit comments

Comments
 (0)