I have one question where I could not find any help:
Is it possible for resource identifiers to be stored as a int [] programmatically without reference to the resource class R?
<declare-styleable name="com_facebook_login_view"> <attr name="confirm_logout" format="boolean"/> <attr name="fetch_user_info" format="boolean"/> <attr name="login_text" format="string"/> <attr name="logout_text" format="string"/> </declare-styleable>
The problem is that I cannot resolve the identifier of a certain attribute declare-styleable. 0x00 always returns:
int id = context.getResources().getIdentifier( "com_facebook_login_view", "declare-styleable", context.getPackageName() ); int[] resourceIDs = context.getResources().getIntArray( id );
Any idea would be greatly appreciated! :)
Thanks in advance!
Christopher
source share