hwrdprkns wrote:
Jonathan Pryor-2 wrote
I am using the MonoDroid sample for ActionBarSherlock located here, but I
haven't been able to get to the SherlockFragmentActivity.
The type isn't being bound because the type can't be processed:
http://mono-for-android.1047100.n5.nabble.com/Java-Binding-with-ActionBarSherlock-tp5711097p5711110.html
Consider it a limitation of the current tooling. :-/
Well, I've gotten the type to process and am able to properly link the code.
However, when I run the code I get a runtime Null Pointer Exception stating
that com.actionbarsherlock.R$styleable doesn't exist.
You don't get R type when you are dealing with the binding library. R
class is generated only when the app build processes the resources with
aapt internally. R class does not exist in the jar unless you manually
added it (which is wrong, you shouldn't do that otherwise type conflict
occurs in the app build time. If you passed that it is still unexpected
result and can be result in any inconsistency).
Also note that R class is generated for every android library package
you referenced and your app. You're likely seeing missing R because it
is not in com.actionbarsherlock package.
Atsushi Eno
Does this mean that MonoDevelop/MonoDroid doesn't know how to build the R
file into the library project correctly? I'm using MonoDroid Alpha channel
4.2.5.
It really pains me that I'm *so* close but the only thing holding this back
is the resource file.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/ActionBarSherlock-Example-Does-Not-Support-Fragments-tp5711423p5711521.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid