我对StateListDrawable中的填充有问题。如果在我的样式中,我用图像资源在一些<selector>上定义了引用,那么它为我的9路径图像设置了一些错误的填充。但是,否则,android会为我的StateListDrawable创建<selector>,并且(正如我在源代码上使用调试器所看到的)它通过使用方法获得填充:
Rect getConstantPadding
当我试图将下面的statelistdrawable设置为我的一个视图的背景时,我总是得到一个错误。我清理了项目,重启了Eclipse和所有的东西,但都不能正常工作。我甚至不能从Android开发者网站上得到一个例子,但这也不起作用……<?> tag requires a 'drawable' attribute or child tag defining a drawable
at android.graphics.drawabl