Questions tagged [android-layout-editor]

60 questions
99
votes
32 answers

Android Studio (Dolphin | 2021.3.1) & (Electric Eel | 2022.1.1) does not show layout preview

I'm using Android Studio Dolphin | 2021.3.1 & Electric Eel | 2022.1.1 After updating Android studio chipmunk | 2021.2.1 to Android studio Dolphin | 2021.3.1 my all project design preview and layout preview not showing. If anyone solved this issue…
51
votes
8 answers

How to refresh preview on Android Studio 2.2?

Now on Android Studio 2.2 on new Preview mode, there are no more refresh button: Image 1: Preview on Android Studio 2.2 (without refresh button) Image 2: Preview on Android Studio 2.1 (with refresh button) Does anyone know how to display it…
23
votes
3 answers

Error: "The graphics preview in the layout editor may not be accurate: Paint.setShadowLayer is not supported"

I'm using Eclipse and I just created a home page (menu) with 2 image buttons, but I am getting this error: The graphics preview in the layout editor may not be accurate: Paint.setShadowLayer is not supported. What does it mean? And how can I solve…
Zee
  • 249
  • 1
  • 2
  • 6
16
votes
4 answers

Why Android Studio is removing and/or changing layout_margin* constraints?

I'm using android.support.constraint.ConstraintLayout to layout a simple card's content views. I'm getting random changes in my XML, every time, when: I switch to Android Studio's layout editor's Design tab Or when I have a Preview pane turned on…
14
votes
6 answers

Failed to find style 'coordinatorLayoutStyle' in current theme In Android Studio 3.1

The Android Studio 3.1 layout preview fails to find style 'coordinatorLayoutStyle' in the current theme. Failed to instantiated one or more classes. Exception shown are :- java.lang.ClassNotFoundException:…
12
votes
8 answers

Android Studio Can't Zoom in/out in Layout Editor

It used to work from time to time, but now the ability to zoom in/out on the layout design page is completely gone for me. The layout view always stays at 10% zoomed in and doesn't change no matter what I do. Oddly, the preview tab with exactly the…
Jack
  • 5,354
  • 2
  • 29
  • 54
7
votes
1 answer

Android Layout Preview Editor - Layout not visible: java.lang.IllegalArgumentException: object is not an instance of declaring class

My Android Studio Layout Editor is not working as expected. The preview always disappers and turns into a completely white screen or freezes (i cannot select any element and changes i make to the xml file are not visible) after i make a change to…
Yannick
  • 4,833
  • 8
  • 38
  • 63
7
votes
1 answer

tools:text for RecyclerView items

I know that when you set tools:text="Sample text" within a TextView, you'll see the sample text in Preview mode in Android Studio, but not within the actual app. I'd like to do this for items in a RecyclerView, but I can't seem to be able to.…
7
votes
1 answer

Split AndroidStudio's XML/Text and Design Window

Currently, Android Studio shows XML and Design windows as a Tabbed option. I want the windows as the following. I have Split the windows, but when I change on the left side then no changes made on the right side until I focused(click) on the right…
user6685522
6
votes
0 answers

Showing right layout in the editor for Custom Views in Android studio

I'm experiencing a strange behavior of the layout preview in Android Studio. I've developed a custom view extending an AppCompatButton and the layout is the expected one at runtime, however, the layout in the layout preview is not displaying…
Nicola Gallazzi
  • 7,897
  • 6
  • 45
  • 64
5
votes
1 answer

After updating Android Studio to Dolphin update it does not show layout preview

I have updated my Android studio to new Dolphin, 2021.3.1 version. But after updating the Android studio layout preview is not working. it showing blank screen. If anyone solve this issue please help me to solve this.
5
votes
2 answers

Android Studio Open Wrong File When Trying to Open XML layout file

I am using android studio 3.3, my project is using kotlin 1.3.20 with build gradle 3.3.0 however when i try to open xml file, it open different file with the right file name and the right file path: And when i try to see this xml file in my Git, my…
5
votes
2 answers

How to use a custom resolution in Android Studio's layout editor?

Sometimes I'm editing the layout resource for a list item or similar small UI component. This is nice, but the available screen resolutions in the layout editor in Android Studio are all way too big to get a reasonable sense of how the list item or…
5
votes
1 answer

How to refresh a resource in Android Studio without restarting?

I'm working on resizing and changing background images. However, each time I have to restart Android Studio so the Layout Preview will refresh the image. Doesn't work: Changing API level Changing Preview orientation Changing theme Synchronizing…
4
votes
2 answers

What does a greyed out view in the Android Layout Inspector mean?

In Android Studio, Tools -> Layout Inspector, what does a greyed out(subdued, dim) view in the View Tree mean? The layer still has VISIBLE properties I don't see any explanation in the docs,…
MLM
  • 3,660
  • 3
  • 41
  • 66
1
2 3 4