Releases: mikepenz/Android-Iconics
Releases · mikepenz/Android-Iconics
v2.5.3
library
- improve android-iconics core. It is now possible to apply Android-Iconics on a
Spanned
which already definesSpannables
without removing them. They will stay applied after the icons are set.- keep previous defined spannables if iconics is applied on a view
- changed from Spannable to Spanned to even allow more use cases
- FIX mikepenz/AboutLibraries#182
- add some more javadoc
sample
- search over all icons FIX #116
general
- update gradle tools to new alpha
v2.5.2
v2.5.1
library
- new constructor for
GenericFont
sample
- add new fonts
- update fonts
- split up the Google Material Icons and the Material Design Iconics font
- order the fonts
- more information in the drawer
font-addons
- new font Devicon v2.0.0.1
- new font Foundation Icons v3.0.0.1
- new font Ionicons v2.0.1.1
- updated font Fontawesome v4.5.0.1
- split up Google Material Icons and Material Design Iconics
- Google Material Icons are the original google icons with mapping prefix "gmd" and class name
GoogleMaterial
- Material Design Iconics is the custom pack with mapping prefix "gmi" and class name
MaterialDesignIconic
- Google Material Icons are the original google icons with mapping prefix "gmd" and class name
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
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
- 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
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));
}
v2.2.1
library
- update to gradle 2.9
- update gradle to v2.0.0-alpha1 to enable instant run ;)
- add new getters to get the icon from an IconicsDrawable
- fix clone method of icon not creating an exact copy
font-addons
- update Material Comunity Icon Font addon to v1.3.41.1
v2.2.0
- define Android-Iconics drawables on
ImageViews
via xml if you inject the context- Inject the context https://github.com/mikepenz/Android-Iconics#3-inject-into-context-optional
- use Android-Iconics drawables on
ImageView
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
app:ico_color="@color/md_red_A200"
app:ico_icon="gmd-plus-circle"
app:ico_size="48dp" />
//other possible attributes
//app:ico_background_color="@android:color/transparent"
//app:ico_color="@color/md_red_100"
//app:ico_contour_color="@android:color/transparent"
//app:ico_contour_width="0dp"
//app:ico_corner_radius="0dp"
//app:ico_icon="gmd-plus-circle"
//app:ico_offset_x="0dp"
//app:ico_offset_y="0dp"
//app:ico_padding="0dp"
//app:ico_size="48dp"
v2.1.1
v2.1.0
- completely rewrite the icon detection logic
- provide 2 seperate implementations
- editable --> will replace the placeholder within the editable with the correct mapped icons
- spannable --> will build up a new Spannable with the mapped icons
- automatically recheck new text on textViews and buttons for iconics icons
- move out icon detection logic into the IconicsUtils
- remove short methods again because they are not necessary anymore
- change style methods to public to allow greater control
- make automatic activity text a bit more complex to check more edge cases of the icon detection
- remove update of the textView as this is now done automatically
- add 2 more methods which will call the style methods (remove all non common params on them)
- remove obsolete static on the Icon enum of the Octicons
v2.0.0
library
- add new IconicsContextWrapper which allows you to automatically set the Iconics icon font for all TextViews and Buttons within your view
- make IconicsLayoutInflator private
- use the new short method syntax inside the IconicsFactory
- add some new useful short methods inside the Iconcis class
- Iconics.on
- Iconics.update
font-addons
- update Google Material Icon Font addon to v2.1.2.1
- change Google Material Font source to Material Design Iconic Font
- this fixes the baseline of the font
- different mapping which will hopefully fix conflicts with some custom roms and the theme engine
- NOTE: this will also rename some icons. Take a look at the cheatsheet here: http://zavoloklom.github.io/material-design-iconic-font/cheatsheet.html
- update Community Material Font addon to v1.2.65
sample-app
- change icon name for new Google Material Icons mapping
- add new AutomaticActivity to showcase the new automatic mapping for TextViews and Buttons via the
IconicsContextWrapper
general
- update to gradle 2.8
- add info on how to modify the unicode char mapping of ttf's on a mac
v1.7.9
- improve icon drawing. change to TextPoint and define default settings
- return alpha in
getOpacity
method - override
clearColorFilter
- change dependency of core to appcompat-v7 v23.1.0
- implement new IconicsCompatButton THANKS @aacanakin