I have the same problem and haven't found a solution yet.
Instead, i query the attributes by name (note that this means that they
need to be set directly on the view in the XML layout). Here is an example:
// called by the custom view's constructors
private void init(Context context, AttributeSet attrs) {
int undoThumbId = R.drawable.seek_bar_undo_marker;
int progress = -1;
if (attrs != null) {
String namespace = "http://schemas.android.com/res/com.mycompany.myapp";
undoThumbId = attrs.getAttributeResourceValue(namespace, "undoThumbResId",
undoThumbId);
progress = attrs.getAttributeIntValue(namespace, "undoProgress",
progress);
}
...
...
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en