Is there any difference between @null Vs transparent(#00000000)
in my layout I set android:background\"@color/transparent\"
but its showing some other
@null means no background at all (View.getBackground() returns null).
#00000000 means that you got a ColorDrawable as the background which has a fully-transparent color.
I didn't look at the code, but I guess that the framework tests if the ColorDrawable is fully transparent and does not draw it in this case. Otherwise you would have some drawing overhead, making @null the faster choice. Both should look identical, so not sure if this is your underlying isse.
To set the equivalent of @null in code, use View.setBackgroundDrawable(null).