Skip to content

Commit

Permalink
Add background to the theme instead of root view to prevent overdraw.
Browse files Browse the repository at this point in the history
Add background to the theme instead of root view to prevent overdraw.
  • Loading branch information
raghunandankavi2010 committed Nov 4, 2018
1 parent a1d3671 commit 6368aa5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
<!-- android:scheme="https" /> -->
<!-- </intent-filter> -->
</activity>
<activity android:name=".about.AboutActivity" />
<activity
android:theme="@style/AppTheme.About"
android:name=".about.AboutActivity" />

<service
android:name=".chat.service.IncomingEventService"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/light_gray"
android:fitsSystemWindows="true"
tools:context="com.tristanwiley.chatse.about.AboutActivity">

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<item name="colorAccent">@color/color_accent</item>
</style>

<style name="AppTheme.About" parent="AppTheme">
<item name="android:windowBackground">@color/light_gray</item>
</style>

<style name="AppTheme.SO" parent="AppTheme">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
Expand Down

0 comments on commit 6368aa5

Please sign in to comment.