forked from lelelongwang/WanJetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
功能实现:Android 6.0.1 上沉侵式适配,遗留问题:navigationbar 没有light模式
- Loading branch information
1 parent
e02bddd
commit b07f688
Showing
12 changed files
with
103 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="200dp" | ||
android:height="200dp" | ||
android:viewportWidth="1024" | ||
android:viewportHeight="1024"> | ||
<path | ||
android:fillColor="?attr/colorOnPrimary" | ||
android:pathData="M834.1,469.2c-19.5,-43.8 -47.4,-82.6 -82.9,-115.2l-29.1,-26.7c-4.3,-3.8 -11.1,-2.1 -13,3.3l-13,37.3c-8.1,23.4 -23,47.3 -44.1,70.8 -1.4,1.5 -3,1.9 -4.1,2 -1.1,0.1 -2.8,-0.1 -4.3,-1.5 -1.4,-1.2 -2.1,-3 -2,-4.8 3.7,-60.2 -14.3,-128.1 -53.7,-202C555.3,171 510,123.1 453.4,89.7l-41.3,-24.3c-5.4,-3.2 -12.3,1 -12,7.3l2.2,48c1.5,32.8 -2.3,61.8 -11.3,85.9 -11,29.5 -26.8,56.9 -47,81.5 -14.2,17.2 -30.1,32.7 -47.5,46.1 -42.1,32.3 -76.8,74.4 -100.3,121.5C172.5,503.3 160,556.6 160,610c0,47.2 9.3,92.9 27.7,136 17.8,41.5 43.2,78.9 75.5,110.9 32.4,32 70,57.2 111.9,74.7C418.5,949.8 464.5,959 512,959s93.5,-9.2 136.9,-27.3c41.9,-17.5 79.6,-42.6 111.9,-74.7 32.4,-32 57.8,-69.4 75.5,-110.9 18.4,-43.1 27.7,-88.8 27.7,-136 0,-48.8 -10,-96.2 -29.9,-140.9z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="200dp" | ||
android:height="200dp" | ||
android:viewportWidth="1024" | ||
android:viewportHeight="1024"> | ||
<path | ||
android:fillColor="?attr/colorPrimaryDark" | ||
android:pathData="M834.1,469.2c-19.5,-43.8 -47.4,-82.6 -82.9,-115.2l-29.1,-26.7c-4.3,-3.8 -11.1,-2.1 -13,3.3l-13,37.3c-8.1,23.4 -23,47.3 -44.1,70.8 -1.4,1.5 -3,1.9 -4.1,2 -1.1,0.1 -2.8,-0.1 -4.3,-1.5 -1.4,-1.2 -2.1,-3 -2,-4.8 3.7,-60.2 -14.3,-128.1 -53.7,-202C555.3,171 510,123.1 453.4,89.7l-41.3,-24.3c-5.4,-3.2 -12.3,1 -12,7.3l2.2,48c1.5,32.8 -2.3,61.8 -11.3,85.9 -11,29.5 -26.8,56.9 -47,81.5 -14.2,17.2 -30.1,32.7 -47.5,46.1 -42.1,32.3 -76.8,74.4 -100.3,121.5C172.5,503.3 160,556.6 160,610c0,47.2 9.3,92.9 27.7,136 17.8,41.5 43.2,78.9 75.5,110.9 32.4,32 70,57.2 111.9,74.7C418.5,949.8 464.5,959 512,959s93.5,-9.2 136.9,-27.3c41.9,-17.5 79.6,-42.6 111.9,-74.7 32.4,-32 57.8,-69.4 75.5,-110.9 18.4,-43.1 27.7,-88.8 27.7,-136 0,-48.8 -10,-96.2 -29.9,-140.9zM713,808.5c-53.7,53.2 -125,82.4 -201,82.4s-147.3,-29.2 -201,-82.4c-53.5,-53.1 -83,-123.5 -83,-198.4 0,-43.5 9.8,-85.2 29.1,-124 18.8,-37.9 46.8,-71.8 80.8,-97.9 21.5,-16.4 41.2,-35.5 58.6,-56.8 25,-30.5 44.6,-64.5 58.2,-101 5.4,-14.5 9.5,-30 12.1,-46.5 24.1,22.2 44.3,49 61.2,80.4 33.4,62.6 48.8,118.3 45.8,165.7 -1.4,22.8 7.5,44.5 24.4,59.8 14.7,13.2 33.7,19.9 53.4,18.8 19.7,-1 37.8,-9.7 51,-24.4 13.3,-14.9 24.8,-30.1 34.4,-45.6 14,17.9 25.7,37.4 35,58.4 15.9,35.8 24,73.9 24,113.1 0,74.9 -29.5,145.4 -83,198.4z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright 2019 Google LLC | ||
~ | ||
~ 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 | ||
~ | ||
~ https://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. | ||
--> | ||
|
||
<selector xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<item android:drawable="@drawable/ic_fire_fill_active" android:state_selected="true"/> | ||
<item android:drawable="@drawable/ic_fire_inactive"/> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Base.Theme.WanJetpack" parent="Theme.MaterialComponents.DayNight.NoActionBar"> | ||
|
||
<item name="colorPrimary">@color/jetpack_green_500</item> | ||
<item name="colorOnPrimary">@color/jetpack_yellow_300</item> | ||
<item name="colorPrimaryDark">@color/jetpack_green_700</item> | ||
<item name="colorSecondary">@color/jetpack_yellow_300</item> | ||
<item name="colorSurface">@color/jetpack_green_900</item> | ||
<item name="colorOnSurface">@color/jetpack_white</item> | ||
<item name="colorAccent">@color/jetpack_green_300</item> | ||
|
||
<!-- 沉侵式 --> | ||
<item name="android:statusBarColor">@android:color/transparent</item> | ||
<item name="android:navigationBarColor">@android:color/transparent</item> | ||
<item name="android:windowTranslucentStatus">true</item> | ||
<item name="android:windowTranslucentNavigation">true</item> | ||
<item name="android:windowLightStatusBar">true</item> | ||
|
||
<!-- 启动界面 --> | ||
<item name="android:windowSplashscreenContent">@drawable/ic_splash_content</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Base.Theme.WanJetpack" parent="Theme.MaterialComponents.DayNight.NoActionBar"> | ||
|
||
<item name="colorPrimary">@color/jetpack_green_500</item> | ||
<item name="colorOnPrimary">@color/jetpack_yellow_500</item> | ||
<item name="colorPrimaryDark">@color/jetpack_green_700</item> | ||
<item name="colorSecondary">@color/jetpack_yellow_500</item> | ||
<item name="colorSurface">@color/jetpack_gray_50</item> | ||
<item name="colorOnSurface">@color/jetpack_black</item> | ||
<item name="colorAccent">@color/jetpack_green_700</item> | ||
|
||
<!-- 沉侵式 --> | ||
<item name="android:statusBarColor">@android:color/transparent</item> | ||
<item name="android:navigationBarColor">@android:color/transparent</item> | ||
<item name="android:windowTranslucentStatus">true</item> | ||
<item name="android:windowTranslucentNavigation">true</item> | ||
<item name="android:windowLightStatusBar">true</item> | ||
|
||
<!-- 启动界面 --> | ||
<item name="android:windowSplashscreenContent">@drawable/ic_splash_content</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters