android - Drawables not recognized when using custom namespace -
I am using a view from the custom library. How can I understand Android Studio that it is a legitimate option for parsing through my Dabilal Directory? I want to be able to see my options as I write (which appears on the AutoFill menu)
In this way I am setting the variable in the category of my custom view:
int rightIconId = a.getResourceId (a.getIndex (R.styleable) .ToolbarITI_rightIconSrc), -1); If (rightIconId! = -1) rightIcon.setImageResource (rightIconId); These are the custom properties (I think my format is incorrect)
& lt; Declare-styleable name = "tooliti" & gt; & Lt; Attr name = "rightIconSrc" format = "integer" /> & Lt; Attr name = "leftIconSrc" format = "integer" /> ... & lt; / Declare-styleable & gt;
As I suspect, my format was wrong. Moving the look of the attribute to "reference" moves the trick.
Comments
Post a Comment