我遇见了器官的问题,为什么我的R.drawable下面总是没有Off和On?看了老师说的Build Project,但是还是不行。而且还非常奇怪,我如果通过界面选取ImageView的src属性时是可以找的Off和On的,如下图:
但是到了代码里就找不到了,这个是为什么啊?
我遇见了器官的问题,为什么我的R.drawable下面总是没有Off和On?看了老师说的Build Project,但是还是不行。而且还非常奇怪,我如果通过界面选取ImageView的src属性时是可以找的Off和On的,如下图:
但是到了代码里就找不到了,这个是为什么啊?
2014-09-18
编译的时候报下面的错误:
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-hdpi\Off.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-ldpi\Off.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-mdpi\Off.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-xhdpi\Off.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-xxhdpi\Off.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-hdpi\On.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-ldpi\On.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-mdpi\On.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-xhdpi\On.jpg: Invalid file name: must contain only [a-z0-9_.]
[2014-09-18 15:43:43 - ToggleButton_Test] res\drawable-xxhdpi\On.jpg: Invalid file name: must contain only [a-z0-9_.]
这时为什么啊?我已经反复确认过了啊?
举报