I solved this rendering problem by simply inserting this line into the application theme (the app theme is usually placed in styles.xml).
[SDK 28]
<style name="AppTheme"> <item name="coordinatorLayoutStyle">@style/Widget.Support.CoordinatorLayout</item> </style>
[SDK 27]
<style name="AppTheme"> <item name="coordinatorLayoutStyle">@style/Widget.Design.CoordinatorLayout</item> </style>
As suggested by @Chris. If the IDE does not find the CoordinatorLayout in Widget.Support or Widget.Design, just start typing “CoordinatorLayout” and it should give you some options.
Related Posts:
- “unable to locate adb” using Android Studio [duplicate]
- “unable to locate adb” using Android Studio [duplicate]
- Enable VT-x in your BIOS security settings (refer to documentation for your computer)
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- “Default Activity Not Found” on Android Studio upgrade
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- ERROR Android emulator gets killed
- Change project name on Android Studio
- How do I remove the title bar from my app?
- Execution failed for task ‘:app:processDebugResources’ even with latest build tools
- Set adb vendor keys
- how to overcome Android Studio cannot resolve symbol for android classes
- Why fragments, and when to use fragments instead of activities?
- Execution failed app:processDebugResources Android Studio
- Session ‘app’: Error Installing APK
- Android Studio Run/Debug configuration error: Module not specified
- “Failed to install the following Android SDK packages as some licences have not been accepted” error
- A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Why is Android Studio reporting “URI is not registered”?
- Font size of TextView in Android application changes on changing font size from native settings
- Android Studio: Unable to obtain result of ‘adb version’
- No tests found for given includes Error, when running Parameterized Unit test in Android Studio
- Getting error “The package appears to be corrupt” while installing apk file
- Error inflating class fragment
- “cannot resolve symbol R” in Android Studio
- Execution failed for task ‘:app:compileDebugJavaWithJavac’ Android Studio 3.1 Update
- Error getGoogleAppId failed with status: 10 Android KitKat – GCM and Google Drive
- PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)
- How to build a horizontal ListView with RecyclerView
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Getting activity from context in android
- What does “Failure [INSTALL_FAILED_OLDER_SDK]” mean in Android Studio?
- Android LinearLayout Gradient Background
- How to customize a Spinner in Android
- Why emulator is very slow in Android Studio?
- Android Studio SDK location
- Android Studio SDK location
- How to remove title bar from the android activity?
- Android Studio-No Module
- Application Installation Failed in Android Studio
- Android Studio 1.2.1.1 – Failed to find style ‘textViewStyle’
- First run of Android Studio. Unable to access Android SDK add-on list
- Why AVD Manager options are not showing in Android Studio
- Does anyone know the what’s causing “Package name is not a valid package name” when adding a new layout?
- Android Studio doesn’t see device
- What does ellipsize mean in android?
- How to completely uninstall Android Studio from windows(v10)?
- What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?
- What is the difference between “px”, “dip”, “dp” and “sp”?
- DELETE_FAILED_INTERNAL_ERROR Error while Installing APK
- Android Studio : Failed to set EGL_SWAP_BEHAVIOR on surface
- Android SDK location should not contain whitespace, as this cause problems with NDK tools
- Unsupported major.minor version 52.0 when rendering in Android Studioandroid android-studio rendering preview
- How to inflate one view with a layout
- How do I get the currently displayed fragment?
- Android Studio – Company Domain Name
- What exactly does fitsSystemWindows do?
- How to add a jar in External Libraries in Android Studio?
- Determining translationX/Y values for ObjectAnimator; how to move a view to an exact screen position?
- What is the difference between gravity and layout_gravity in Android?
- why android studio show error of “Missing constraints in constraintlayout”?
- Remove Project from Android Studio
- Android SDK path not specified
- How to solve failed to find build tools revision 26.0.2?
- Why is the Android emulator screen blank?
- Closing Application with Exit button
- How to change the color of a button?
- Cannot resolve symbol ‘AppCompatActivity’
- How do I “select Android SDK” in Android Studio?
- Change the project theme in Android Studio?
- Can I underline text in an Android layout?
- How to disable Instant Run for Android Studio 3.0
- Cannot resolve symbol ‘AppCompatActivity’
- Scrollview can host only one direct child
- Android Studio – Emulator – eglSurfaceAttrib not implemented
- Re-enable “component tree” in Android Studio
- “Gradle Version 2.10 is required.” Error
- How to remove title bar from the android activity?
- Android studio- “SDK tools directory is missing”
- Android Studio – ADB Error – “…device unauthorized. Please check the confirmation dialog on your device.”
- HAX kernel module is not installed
- SDK Location not found in android studio
- SDK Location not found in android studio
- Exception : AAPT2 error: check logs for details
- Android ADB devices unauthorized
- adb is not recognized as internal or external command, operable program or batch file
- Getting net::ERR_UNKNOWN_URL_SCHEME while calling telephone number from HTML page in Android
- Still getting warning : Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’
- How to fix: Error device not found with ADB.exe
- How to create a popup window (PopupWindow) in Android
- findViewById in Fragment
- ImageView in circular through XML
- Android: How can I Convert String to Date?
- Your content must have a ListView whose id attribute is ‘android.R.id.list’
- the item you requested is not available for purchase
- USB Debugging option greyed out
- Android Drawing Separator/Divider Line in Layout?
- XML has empty body?