I’ve recently pushed a new version (v0.2) of the GreenDroid library for Android to GitHub. This new version brings some new amazing features to developers and fixes some bugs. Here is the list of changes:
- [NEW] Add a new
GDExpandableListActivity. This is the GreenDroid equivalent to a regularExpandableListActivity - [NEW] Add of a new theme attribute
gdTabIndicatorStyleallowing basicGDTabActivitytabs styling - [NEW] Add of some basic
ImageProcessors.ScaleImageProcessormay be used to scale an image from the network prior displaying itMaskImageProcessormasks an image according to a given shape orBitmapChainImageProcessorsequentially appliesImageProcessors to an image
- [NEW] Add a new attribute in the style to change the color of all
ActionBarItemgdActionBarItemColorNormalchanges the color of allActionBarItems in normal modegdActionBarItemColorAltchanges the color of allActionBarItems in alternative (pressed/focused) mode
- [NEW] Add of a
MapPinDrawablehelping developers to easily create colored pins forMapViewMapPinDrawableis based on the original creation of Roman Nurik for the Cycle Hire Surgery
- [NEW] Add of a new
PagedViewwidget. APagedViewshows items in a ‘paged’ manner. Pages can be scrolled horizontally by swiping theView. ThePagedViewuses a reuse mechanism similar to the one used by theListView. It is usually a good idea to show the user which page is currently on screen. This can be easily done with aPageIndicator. - [CHANGE] The
ThumbnailItemViewnow uses anAsyncImageViewinstead of the regularImageView- This change allow developer to use URLs directly via the
greendroid:thumbnailURLXML attribute or via thethumbnailURLproperty of theThumbnailItem.
- This change allow developer to use URLs directly via the
- [CHANGE] Time related constants are now of type
long(types previously used wasint) - [CHANGE] Using one of the
setActionBarContentViewmore than once was stacking views on top of each other. Starting from nowsetActionBarContentViewacts likesetContentViewand remove all subviews prior setting the new one. - [FIXED] Using one of the
setActionBarContentViewinGDListActivitywas buggy. ThesetActionBarContentViewmethods are helpers that should only be used inGDActivityto help developers adding anActionBarto their already existing layouts. If you really want a custom layout inGDListActivityyou should be using thecreateLayoutmethod. - [FIXED] The
GDTabActivitywas not correctly handling clicks on the home button - [FIXED] Add missing leading zero for single digit hex values in the
MD5Utilsclass
As you can see, there are a lot of changes. I don’t have time to explain all of those changes and I think the explanations given above are quite clear. However, I’d like to draw your attention to the PagedView and MapPinDrawable. Feel free to test those new features with the GDCatalog application available on the Android Market:
http://market.android.com/details?id=com.cyrilmottier.android.gdcatalog
As usual, the code is open-source and available on the GitHub page of the project:
http://github.com/cyrilmottier/GreenDroid
That’s all! I sincerely hope you’ll like this new release. Do not hesitate leave a comment below …