Skip to content

Commit 4f31d0b

Browse files
FixingDarkMode
1 parent 3ad9f64 commit 4f31d0b

File tree

6 files changed

+31
-6
lines changed

6 files changed

+31
-6
lines changed

samplekotlin/src/main/AndroidManifest.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@
2020
<category android:name="android.intent.category.LAUNCHER" />
2121
</intent-filter>
2222
</activity>
23-
<activity android:name=".ChannelActivity" />
24-
<activity android:name=".ChannelActivity2" />
25-
<activity android:name=".ChannelActivity3" />
26-
<activity android:name=".ChannelActivity4" />
23+
<activity android:name=".ChannelActivity"
24+
android:theme="@style/AppTheme.NoActionBar"
25+
/>
26+
<activity android:name=".ChannelActivity2"
27+
android:theme="@style/AppTheme.NoActionBar"
28+
/>
29+
<activity android:name=".ChannelActivity3"
30+
android:theme="@style/AppTheme.NoActionBar"
31+
/>
32+
<activity android:name=".ChannelActivity4"
33+
android:theme="@style/AppTheme.NoActionBar"
34+
/>
2735
</application>
2836
</manifest>

samplekotlin/src/main/res/layout/activity_channel_3.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
android:id="@+id/typingHeaderView"
1717
android:layout_width="0dp"
1818
android:layout_height="31dp"
19-
android:background="#CCCCCC"
19+
android:background="@color/light_gray"
2020
android:gravity="center"
21+
android:textColor="@color/black"
2122
app:layout_constraintEnd_toEndOf="parent"
2223
app:layout_constraintStart_toStartOf="parent"
2324
app:layout_constraintTop_toBottomOf="@+id/messageListHeaderView" />

samplekotlin/src/main/res/layout/activity_channel_4.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
android:id="@+id/typingHeaderView"
1717
android:layout_width="match_parent"
1818
android:layout_height="31dp"
19-
android:background="#CCCCCC"
19+
android:background="@color/light_gray"
2020
android:gravity="center"
21+
android:textColor="@color/black"
2122
app:layout_constraintEnd_toEndOf="parent"
2223
app:layout_constraintStart_toStartOf="parent"
2324
app:layout_constraintTop_toBottomOf="@+id/messageListHeaderView" />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="light_gray">#101418</color>
4+
<color name="black">#FFF</color>
5+
</resources>

samplekotlin/src/main/res/values/colors.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
<color name="colorPrimary">#008577</color>
44
<color name="colorPrimaryDark">#00574B</color>
55
<color name="colorAccent">#D81B60</color>
6+
<color name="light_gray">#DDD</color>
7+
<color name="black">#000</color>
68
</resources>

samplekotlin/src/main/res/values/styles.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@
88
<item name="colorAccent">@color/colorAccent</item>
99
</style>
1010

11+
<!-- Base application theme. -->
12+
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
13+
<!-- Customize your theme here. -->
14+
<item name="colorPrimary">@color/colorPrimary</item>
15+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
16+
<item name="colorAccent">@color/colorAccent</item>
17+
</style>
18+
1119
</resources>

0 commit comments

Comments
 (0)