Android: Adding A Content View
I try to add a content view from inside a native extension to the current activity like so: // context is the current FREContext View extensionview = LayoutI
Solution 1:
You have to make the extra effort and use the ressourceId, as it's available from the extension context (as opposed to the generated resources, that aren't).
intlayoutId= MyExtension.extensionContext.getResourceId("layout.callout");
LayoutInflaterinflater= (LayoutInflater)mContext.getSystemService (Context.LAYOUT_INFLATER_SERVICE);
Viewv= inflater.inflate(layoutId, layout);
Hope, this helps someone.
Post a Comment for "Android: Adding A Content View"