Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use AppCompat v7 if minsdk is 14

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?

like image 441
sockeqwe Avatar asked Jul 27 '14 16:07

sockeqwe


2 Answers

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

like image 52
CNBorn Avatar answered Sep 21 '22 00:09

CNBorn


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)

like image 30
Raghunandan Avatar answered Sep 19 '22 00:09

Raghunandan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!