How to update GUI Designer?

Heym guys,

Sometimes when I change my ui design in text area and then hit design tab to see how is my changes, it doesn't show mt changes.
Is there ant "Update" to force Design tab to redraw screen?

Any suggestion would be appreciated. Thanks

3 comments

Hello,

You use Swing Designer or Android Designer?

Please describe your steps for reproduce.

0

Hey Alex,

Thanks for your response.
I'm using Android designer.
A:
1- I create an xml file under res/layout.
2- I write my code under "Text" tab.
3- To make sure my code is correct, I click on Design tab and see my design (exactly as what i have written under "Text" tab)

This is sample code

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg_screens">

    <view
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        
        android:id="@+id/TitleBar"
        android:layout_gravity="left|center_vertical"/>

    <ListView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/TitleBar"
        android:id="@+id/listView"
        android:scrollbars="none"
        android:scrollingCache="false"
        tools:listitem="@layout/list_my_crowd_row"
        android:divider="@color/transparent"
        android:dividerHeight="1dp" />

    <com.belldigital.widget.SideBar
        android:id = "@+id/sideBar"
        android:layout_height="fill_parent"
        android:layout_width="22px"
        android:layout_alignParentRight="true" />
</RelativeLayout>



screenshot of
Workspace 1_001.png

B:
Now I change the layout to:

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg_screens">

    <view
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        
        android:id="@+id/TitleBar"
        android:layout_gravity="left|center_vertical"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:layout_below="@id/TitleBar">

        <ListView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/listView"
            android:scrollbars="none"
            android:scrollingCache="false"
            tools:listitem="@layout/list_my_crowd_row"
            android:divider="@color/transparent"
            android:dividerHeight="1dp" />

        <com.belldigital.widget.SideBar
            android:id = "@+id/sideBar"
            android:layout_height="match_parent"
            android:layout_width="22px"
            android:layout_alignParentRight="true" />
    </LinearLayout>
</RelativeLayout>


So when I click on "Design" tab I expect screen rendesigns. But it still shows old design like above screenshot (component tree).
I need to close the file and reopen it in order to see new design.

I'm using Intellij Idea version 12.0.4 Ultimate.

Thanks

0

Hello,

Xmm, I don't reproduce your problem.
Please try use last version IDEA.

0

Please sign in to leave a comment.