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?