Skip to content Skip to sidebar Skip to footer

Android Studio Palette/component Tree

Palette items have question mark on them . SCREENSHOT this is mine build.gradle script compileSdkVersion 27 minSdkVersion 19 targetSdkVersion 27 dependencies {

Solution 1:

That just means that Android Studio is not being able to provide you a preview icon of these views at the moment. It doesn't mean there is some explicit problem with Android Studio or that these components won't work. You can place the view on a layout to see how the view actually looks like rather than relying on a preview icon.

On the contrary, you shouldn't actually be using the palette to drag-and-drop and make your layout but rather be writing your layout using XML. That would avoid unnecessary offsets or fixed positions of certain elements and will help you ensure your layout looks good on all devices.

Note: if your layouts don't work or Android Studio is not being able to show you a preview of your layout, that's a complete separate question and should be asked separately.

Post a Comment for "Android Studio Palette/component Tree"