Can anyone provide an example of using StateListDrawable programmatically. In java you would use something like: states.addState(new int[] {android.R.attr.state_focused}, getResources().getDrawable(R.drawable.focused)); However in Xamarin I can't find the equivalent to android.R.attr.state_focused. Has anyone managed to get this working?
↧