##Upgrade Notes
- Dropping support for API < 14. New
MinSdkVersion
is now 14
- there is now a new prefered solution to enable the Iconics features on Android base views like ImageViews, TextViews or all views which extend those.
- instead of wrapping the
baseContext
you should now define theIconicsLayoutInflater
as defaultLayoutInflater
. This will also bring Calligraphy compatiblity (or to other libs which wrap thebaseContext
) - this requires an
Activity
extending theAppCompatActivity
or implementing theAppCompatDelegate
@Override
protected void onCreate(Bundle savedInstanceState) {
LayoutInflaterCompat.setFactory(getLayoutInflater(), new IconicsLayoutInflater(getDelegate()));
//...
super.onCreate(savedInstanceState);
//...
}
- if you do not wrap the
BaseContext
with a different lib, or do not extend fromAppCompatActivity
or do not implementAppCompatDelegate
you can still wrap thebaseContext
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(IconicsContextWrapper.wrap(newBase));
}
- there is now a core package which comes without included fonts
- provide the fonts you need. no additional steps required
- NOTE: Google's font has a bad baseline so icons are not centered within text. Drawables look fine. Use Material Design Iconic as alternative if this is an issue for you
- is now the default Google Material icon set again with the "gmd" mapping
- package name
com.mikepenz.google_material_typeface_library.GoogleMaterial
- is now the standalone Material Design Iconic icon pack with the "gmi" mapping
- package name
com.mikepenz.material_design_iconic_typeface_library.MaterialDesignIconic
- the mapping of some icons changed