how can customize action bar api<11? can't use actionbarsherlock because got issue related custom rom...is there way that?
you can go sherlock action bar. here link same
here detailed info on how implement it
make sure project uses android 4.0+ build target , have compatibility/support library added. (you can
right-click project, select android toots > add support library)download actionbarsherlock library project , import eclipse.
right-click main project, select properties, , select android in left pane. in bottom half of window, click add button , select actionbarsherlock project. click ok.
instead of using regular activities , fragments, use ones sherlock library. have same names, prefixed "sherlock" (sherlockactivity, sherlockfragment, etc.)
to access actionbar in code, call getsupportactionbar(). returns either regular actionbar (for honeycomb , later) or sherlock actionbar (for pre-honeycomb).
theming instructions on actionbarsherlock website.
you can set android:minsdk in android manifest lower sdk 2.2 built have build in target 4.
so, it work on handsets api level < 11. hope helps.
Comments
Post a Comment