Android Custom Control namespace issue
问题 I've been working on a Custom Control for Android and although I tried to do what's suggested here there seems to be something I'm doing wrong. Here's my code to see if anyone can spot the problem: MyComponent.java public MyComponent(Context context, AttributeSet attrs) { super(context); TypedArray arr = context.obtainStyledAttributes(attrs, R.styleable.MyComponent); CharSequence myId = arr.getString(R.styleable.MyComponent_identifier); if (myId != null) { this.setIdentifier(myId.toString());