I found the answer in this link:Status Bar Color not changing with Relative Layout as root element
So it turns out we need remove the
<item name="android:statusBarColor">@android:color/transparent</item>
in styles.xml(v21). And it works just fine for me.
More Related Contents:
- Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
- Error inflating class android.support.design.widget.NavigationView
- Use Tab with new ToolBar (AppCompat v7-21)
- Material Design not styling alert dialogs
- Cannot resolve symbol ‘AppCompatActivity’
- How to use and style new AlertDialog from appCompat 22.1 and above
- Remove BottomNavigationView labels
- The import android.support.v7.app cannot be resolved
- Support library VectorDrawable Resources$NotFoundException
- No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’. when updating to Support Library 26.0.0
- Android v21 Theme.Appcompat color accent is ignored, no padding on dialogs
- Fixing Error in styles.xml to generate R.java : No resource found name ‘Theme.AppCompat.Light’
- How to create a card toolbar using appcompat v7
- Getting exception : java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14
- Failed to resolve: com.android.support:cardview-v7:26.0.0 android
- Android M – check runtime permission – how to determine if the user checked “Never ask again”?
- Nested Recycler view height doesn’t wrap its content
- How can I programmatically open the permission screen for a specific app on Android 6.0 (Marshmallow)?
- Actionbar not shown with AppCompat
- ConnectivityManager getNetworkInfo(int) deprecated
- In android app Toolbar.setTitle method has no effect – application name is shown as title
- Change EditText hint color when using TextInputLayout
- Disabling User dragging on BottomSheet
- InflateException with FloatingActionButton from Official Design Library
- How to hide ToolBar when I scrolling content up?
- How to change Toolbar home icon color
- TextInputLayout :How to give padding or margin to hint?
- Don’t collapse Toolbar when RecyclerView fits the screen
- play-services-ads conflicts with appcompat
- Change Navigation View Item Color Dynamically Android