xml - Android Studio requiring layout_width/height within <wallpaper> tag -


android studio insisting layout_width , layout_height required within tag. i'm pretty darn sure they're not reading here. i'm trying figure out if due error on part or weird android studio quirk.

my layout file:

<?xml version="1.0" encoding="utf-8"?> <wallpaper xmlns:android="http://schemas.android.com/apk/res/android" android:thumbnail="@drawable/icon" android:description="@strings/description"/>  

a snippet of manifest:

<service android:name="com.handmade.tavern.livewallpaper"     android:label="@string/app_name"     android:permission="android.permission.bind_wallpaper">     <intent-filter>         <action android:name="android.service.wallpaper.wallpaperservice"/>     </intent-filter>     <meta-data android:name="android.service.wallpaper"          android:resource="@layout/wallpaper_layout"/> </service> 

has else experienced this? can explain mistake? thanks,

ok seems android studio allow tags within res/xml directory. moving file fixed problem. not sure if android studio being picky or not. have seen 2 references wallpapers stored in res/layout folder before don't know if typos. further comments welcome.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -