Saturday, March 8, 2014

Custom Controls No resource identifier found for attribute 'who' in package


I want to do a custom BUTTON, first defined in the
in attrs.xml



More of a who attribute

Then main.xml in,
Plus the namespace xmlns: t = "http://schemas.android.com/apk/res/com.limaoyuan.button"

Then
place in the definition Buttont: who = "aaad" />
Report No resource identifier found for attribute 'who' in package 'com.limaoyuan.button'


What is the reason? Online wait<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This is in android2.2 there?
When I have encountered this problem, and finally abandon with a custom up!
Reply:
I have also appeared, master solving what ah
Reply:
Theoretically should be right in the forehead. Specific reason is not clear.
Reply:
The reply was deleted at the moderator 2012-04-01 10:54:32

Reply:
Cause 1, in view of the custom attribute is not specified usage TypedArray typeArray = context.obtainStyledAttributes (attrs,
R.styleable.xxx);
Reason 2: the package name wrong, or omitted to write to write
Reply:
attrs.xml which directory the file you put down. . .
Reply:
Cause of error: xmlns: ptr = "http://schemas.android.com/apk/res/com.ycii.newseye.ui"
Resolution:
xmlns: ptr = "http://schemas.android.com/apk/res/com.ycii.ljapp.ui",
com.ycii.ljapp.ui for the package AndroidManifest.xml defined, namely: android: versionCode = "1"
android: versionName = "1.0">

No comments:

Post a Comment