android Programming Glossary: r.drawable.foo
imageview drawable id in android http://stackoverflow.com/questions/4526585/imageview-drawable-id-in-android View view ImageView imageView ImageView view assert R.id.someImage imageView.getId switch getDrawableId imageView case R.drawable.foo imageView.setDrawableResource R.drawable.bar break case R.drawable.bar default imageView.setDrawableResource R.drawable.foo.. imageView.setDrawableResource R.drawable.bar break case R.drawable.bar default imageView.setDrawableResource R.drawable.foo break Right So that function getDrawableId doesn't exist. You can't get a the id that a drawable was instantiated from.. imageView.getId Integer integer Integer imageView.getTag integer integer null 0 integer switch integer case R.drawable.foo imageView.setDrawableResource R.drawable.bar imageView.setTag R.drawable.bar break case R.drawable.bar default imageView.setDrawableResource..
Resources NotFoundException? http://stackoverflow.com/questions/9468482/resources-notfoundexception #0x.... I get about 17 of these a week. It's pointing me to the following in my code context.getResources .getDrawable R.drawable.foo That resource is definitely present in my drawable folder. I have several hundred thousand installs I'm not sure how this..
|