Jetpack Compose Basics tutorial doesn't mention changing app theme
@JolandaVerhoef đang làm issue này rồi.
Từ ngày 16/8/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The tutorial here implicitly depends on using a day/night theme in themes.xml: https://developer.android.com/codelabs/jetpack-compose-basics
For example, themes.xml in the solution contains this code:
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.BasicsCodelab" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
</style>
<style name="Theme.BasicsCodelab.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="Theme.BasicsCodelab.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="Theme.BasicsCodelab.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
However, creating a new Compose project with Android Studio results in this theme:
<resources>
<style name="Theme.BasicsCodelab" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:statusBarColor">@color/purple_700</item>
</style>
</resources>
This leads to differences in expected behavior and actual behavior from following the tutorial. For example, components won't display a dark background without wrapping them in a compose Surface. The system bar also won't follow dark mode and there may also be differences with system dialogs and other components.
- Ngôn ngữ chính
- Kotlin
- Star
- 1.7k
- Fork
- 802
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của android/codelab-android-compose
-
Layout Inspector url brokenCó thể làm lại được @MagicalMeghan đã nhận 347 ngày trước và không có pull request nào đang mở. Đang mở
android/codelab-android-compose#548 · 3 bình luận · 1 người được giao ·
-
Color.kt package name needs updateCó thể làm lại được @MagicalMeghan đã nhận 502 ngày trước và không có pull request nào đang mở. Đang mở
android/codelab-android-compose#534 · 1 bình luận · 1 người được giao ·
-
Build issue with AdvancedStateAndSideEffectsCodelab in Android Studio Ladybug | 2024.2.1 Patch 2Có thể làm lại được @MagicalMeghan đã nhận 644 ngày trước và không có pull request nào đang mở. Đang mở
android/codelab-android-compose#514 · 1 bình luận · 2 reaction · 1 người được giao ·
-
Selected item in the list has the same colorCó thể làm lại được @alexvanyo đã nhận 347 ngày trước và không có pull request nào đang mở. Đang mở
android/codelab-android-compose#505 · 1 bình luận · 1 người được giao ·
-
Material Theme Builder has been updated which does not match the Codelab: Theming in Compose with Material 3Có thể làm lại được @dturner đã nhận 696 ngày trước và không có pull request nào đang mở. Đang mở
android/codelab-android-compose#501 · 1 reaction · 1 người được giao ·
Tất cả issue của android/codelab-android-compose
Issue tương tự
-
afk-ok area:data-quality importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
enorm-labs/event-junkie#3027 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
libre-tube/LibreTube#8854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rustyrazorblade/easy-db-lab#1003 ·
Maintainer thường phản hồi trong vòng 1 ngày