78826: Templates use wrong parent class

The activity templates need to know whether we're using appcompat or
not (for example to determine what the parent activity class should
be, whether to call getActionBar or getSupportActionBar, and so on.)

This was hardcoded to "is minSdkVersion < 14?" which is wrong; you
could be using appcompat with minSdkVersion > 14 (as is now recommended
to get Material Design support), and similarly you could be using
minSdkVersion < 14 without appcompat.

Instead, the templates now look up whether the appcompat library is in
fact used by the current project (using a new custom freemarker method
for checking dependencies added separately on the IDE side.)

Change-Id: I6fe1827525b321e785a1f810faf948cf746f9405
21 files changed