Prototik / HoloEverywhere

NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE.
MIT License
2.18k stars 608 forks source link

find action_bar_title id in Activity #784

Closed DJafari closed 10 years ago

DJafari commented 10 years ago

what is equal for holoeverywhere ?

int titleId = getResources().getIdentifier("action_bar_title", "id", "android");

tested it, but not working :

int titleId = getResources().getIdentifier("action_bar_title", "id", "org.holoeverywhere");
Prototik commented 10 years ago
final Context context = this;
int titleId = context.getResources().getIdentifier("action_bar_title", "id", context.getPackageName());

All library resources packed into application scope, so you should find resources in your application package.