Why should I use ActionbarSherlock? [closed]

2019-08-05 16:48发布

I have seen tons of answers related to usage of ActionbarSherlock. Even that I use it for months I still don't have an answer why should I really used? What more it gives than the regular Android support library? I can use the support lib to gain the same visual appearance. I know it uses either the support or the native implementation depending on the running android version, but what's the practical benefit of this?

3条回答
The star\"
2楼-- · 2019-08-05 17:14

ActionBarSherlock basically provides BACKWARD COMPATIBILITY which the android support library -v4 doesn't. It is because of this library and HoloEveryWhere that users can enjoy ICS-like UI on their old phones (froyo,gingerbread,etc). If you are targetting Honeycomb/ICS/JB , just use native ActionBar. Hope that makes sense.

查看更多
Animai°情兽
3楼-- · 2019-08-05 17:27

What more it gives than the regular Android support library? I can use the support lib to gain the same visual appearance.

There is no support ActionBar in the support lib. ABS is the only backport of the ActionBar. So if you want to have an ActionBar on ore HC devices, then this is the only way how to.

Edit:
There's now an official back port of the ActionBar available in the support library.

查看更多
聊天终结者
4楼-- · 2019-08-05 17:28

It works on older platforms. Like Android 2.0.

查看更多
登录 后发表回答