v2.5.0
library
- rename old IconicsLayoutInflator to InternalLayoutInflater and make private
- add new IconicsLayoutInflater which can be used in AppCompatActivities or all activities which feature an AppCompatDelegate
- this is also compatible with libs which wrap the basecontext like calligraphy
- remove unnecessary methods
sample
- change AutomaticActivity to showcase the new IconicsLayoutInflater
- add new OldAutomaticActivity to showcase how to wrap the context for normal Activities which do not use an AppCompatDelegete / or do not extend from the AppCompatActivity
- update to the latest materialDrawer
MIGRATION
2.x.y -> 2.5.0
- 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
baseContextyou should now define theIconicsLayoutInflateras defaultLayoutInflater. This will also bring Calligraphy compatiblity (or to other libs which wrap thebaseContext) - this requires an
Activityextending theAppCompatActivityor implementing theAppCompatDelegate
- instead of wrapping the
@Override
protected void onCreate(Bundle savedInstanceState) {
LayoutInflaterCompat.setFactory(getLayoutInflater(), new IconicsLayoutInflater(getDelegate()));
//...
super.onCreate(savedInstanceState);
//...
}- if you do not wrap the
BaseContextwith a different lib, or do not extend fromAppCompatActivityor do not implementAppCompatDelegateyou can still wrap thebaseContext
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(IconicsContextWrapper.wrap(newBase));
}