我必须向RelativeLayout添加新状态,但永远不会调用onCreateDrawableState方法。我的类(class)是:publicclassUnreadableRelativeLayoutextendsRelativeLayout{privatestaticfinalint[]STATE_UNREADED={R.attr.state_unreaded};privatebooleanisUnreaded=false;publicUnreadableRelativeLayout(Contextcontext){super(context);}publicUnreadable