I have a custom RelativeLayout and want to use the android support design library inside it (so I can use the CoordinatorLayout). I've tried adding
android:theme="@style/Theme.AppCompat.Light"
but am still getting this error:
Caused by: java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
Does this mean that I cannot use it on a custom view and only inside an Activity? Because I cannot use an activity here. I'm adding this view to the WindowManager. Any help is highly appreciated. Thanks!