File tree Expand file tree Collapse file tree
java/me/itangqi/buildingblocks/ui/activity/base Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434
3535 <activity
3636 android : name =" .ui.activity.MainActivity"
37- android : label =" @string/app_name" >
37+ android : label =" @string/app_name"
38+ android : theme =" @style/Root.Theme.AppTheme" >
3839
39- <intent-filter >
40+ <intent-filter >
4041 <action android : name =" android.intent.action.MAIN" />
4142 <category android : name =" android.intent.category.LAUNCHER" />
4243 </intent-filter >
Original file line number Diff line number Diff line change @@ -95,4 +95,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
9595 return super .onOptionsItemSelected (item );
9696 }
9797 }
98+
99+
98100}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
33
4- <style name =" AppTheme" parent =" Theme.AppTheme" >
4+ <style name =" Base.Theme.AppTheme" parent =" Theme.AppTheme" >
5+ <item name =" android:windowIsTranslucent" >true</item >
6+ <item name =" android:windowDrawsSystemBarBackgrounds" >true</item >
7+ <item name =" android:statusBarColor" >@android:color/transparent</item >
8+ </style >
9+
10+ <style name =" Root.Theme.AppTheme" parent =" Base.Theme.AppTheme" >
11+ <!-- 解决activity切换时的黑屏问题 -->
12+ <item name =" android:windowIsTranslucent" >false</item >
513 <item name =" android:windowDrawsSystemBarBackgrounds" >true</item >
614 <item name =" android:statusBarColor" >@android:color/transparent</item >
715 </style >
You can’t perform that action at this time.
0 commit comments