Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't use Studio Designer with a custom RelativeLayout derived class

I'm adding some animation to a wearable app which is implemented in a class derived from RelativeLayout:

package wear.com.watchgui;
public class RippleBackground extends RelativeLayout {...}

If I try and use this within rect_activty_main.xml as follows:

<wear.com.watchgui.RippleBackground 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:orientation="vertical"
    tools:context=".MainActivity" tools:deviceIds="wear_square"
    android:id="@+id/overlayLayout"
    android:clickable="true"
    android:background="#0288d1">
    <TextView ....

Then the problem is that its impossible to do anything with Android Studio Designer - its not possible add new widgets, or drag around and move existing ones etc. The Android Studio graphical interface is totally unusable as if the GUI is locked and can't be edited.

I can make changes using the text editor interface to directly edit the layout xml but I can't do anything using the graphical editor interface.

Does anybody know why I'm getting this issue and if there is a solution?

like image 520
Gruntcakes Avatar asked Sep 27 '22 05:09

Gruntcakes


1 Answers

This has been an issue for awhile now.

It appears to have been fixed in Android Studio 1.3.0.

You can find it here

like image 142
tachyonflux Avatar answered Oct 13 '22 03:10

tachyonflux