Chciałbym korzystać z bibliotek wymienionych w tytule w jednym projekcie.Czy istnieje sposób na użycie Roboguice i ActionbarSherlock w jednym projekcie?
Jednak oba wymagają mojej działalności, aby rozszerzyć ją ze specjalnej klasy aktywności: w przypadku Roboguice jest to RoboAcitivity, a jest to FragmentActivity for ActionbarSherlock.
ActionBarSherlock rozszerza bibliotekę zgodności, co jest dobre, bo też trzeba użyć fragmentów i poziomie projektu s poziom < API 11.
Czy ktoś udało się to robi? Ponieważ Java nie obsługuje wielokrotnego dziedziczenia (co zwykle jest dobre), próbowałem uczynić FragmentActivity w projekcie ActionbarSherlock, aby rozszerzyć RoboActivity zamiast standardowej Aktywności. Ale nie mogę tego skompilować w ten sposób.
Część wyjścia konsoli jest:
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:170: error: Error: No resource found that matches the given name: attr 'android:logo'.
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:171: error: Error: No resource found that matches the given name: attr 'android:navigationMode'.
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:174: error: Error: No resource found that matches the given name: attr 'android:progressBarPadding'.
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:176: error: Error: No resource found that matches the given name: attr 'android:subtitle'.
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:177: error: Error: No resource found that matches the given name: attr 'android:subtitleTextStyle'.
[2011-10-15 17:46:31 - RetainFragmentTest2] /Users/scythe/JavaLibs/JakeWharton-ActionBarSherlock-a4855d0/library/res/values-v11/abs__styles.xml:173: error: Error: No resource found that matches the given name: attr 'android:titleTextStyle'.
Jesteś zbyt chciwy, myślę: P Ale czuję, że problem jest z powodu abs_styles nie posiadające wymienionych atrybutów – the100rabh