Should I use AppCompat v7 if minsdk is 14

2019-03-24 18:09发布

should I still use app compat v7 if my app has minSdk = 14?

Is there any advantage with ActionBar in Android L ?

Should I use android.support.v4.app.FragmentActivity from support v4 or should I use the android.app.Activity class (which has support for fragments since honeycomb)?

Should I also use android.app.Fragment or android.support.v4.app.Fragment?

I guess that I should use support v4 FragmentActivity and Fragment, but there is no need for app compat v7, right?

What do you think?

2条回答
Melony?
2楼-- · 2019-03-24 18:47

If you want to use Material Design style for SDK 14+, you should also use AppCompat v7:21.0.+

You app can use Material as its main theme, and functional from API 7.

More info you can check this link

查看更多
甜甜的少女心
3楼-- · 2019-03-24 19:12

AppCompat is used for api level below 11. Since 11 you have action bar natively. So there is no need to use AppCompat on api levle 11 and above.

Extend Activtiy and use Fragment ( not android.support.v4.app.Fragment)

查看更多
登录 后发表回答