Android: style reference after updating SDK and ADT in mid-2011

I see a lot of similar questions that R.java cannot compile, no resource was found that matches @android: style / "immediately after updating the SDK and ADT" , which leads to existing projects. compile R.java file cannot be compiled. I find out that errors come from a link

<style name="Theme.Wallpaper" parent="android:style/Theme.Wallpaper" > <item name="android:colorForeground">#fff</item> </style> 

What happens is that some styles, such as Theme.Wallpaper, are not publicly available. You should no longer expand them.

Some suggest returning to platform_tools_r05 http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/9b2b2aa389dce367?show_docid=9b2b2aa389dce367&pli=1

If you want to make the right way to read Xavier July 28 http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/9b2b2aa389dce367?show_docid=9b2b2aa389dce367&pli=1

If you want to reuse a style that is private, you must copy the contents of that style into your own, not an extension.

So where can I find the content (private) style? Seriously, after the update, I don’t have time to fix platform errors when the project code worked correctly.

0
source share
1 answer
 <!-- Default theme for windows that want to have the user selected wallpaper appear behind them. --> <style name="Theme.Wallpaper"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:colorBackgroundCacheHint">@null</item> <item name="android:windowShowWallpaper">true</item> </style> 

It looks like you want to use the above code from an Android source and create your own theme based on.

+1
source

Source: https://habr.com/ru/post/927712/


All Articles