androidcommonsware

my compiler doesn't recognize resources and ids


I have used commonsware's source code to make iconic-adapter project in android(you can find the source here http://github.com/commonsguy/cw-omnibus/tree/master/Selection/Dynamic) but i have some problems:

super(DynamicSample.this, R.layout.row, R.id.**lable**, items);//it doesn't recognize "lable"

if (items[position].length()>4) {
        icon.setImageResource(R.drawable.**delete**);
      }

//doesn't recognize delete, I have copied the //proper picture in drawable-mdpi

I appreciate your answers in advance


Solution

  • There are three things u should notice what is the R you have imported it is good idea to have drawable copied in all folders or at least parent drawable directory @id not being there please check the declaration of lable again.