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
gdTabIndicatorStyle
allowing basicGDTabActivity
tabs styling - [NEW] Add of some basic
ImageProcessor
s.ScaleImageProcessor
may be used to scale an image from the network prior displaying itMaskImageProcessor
masks an image according to a given shape orBitmap
ChainImageProcessor
sequentially appliesImageProcessor
s to an image
- [NEW] Add a new attribute in the style to change the color of all
ActionBarItem
gdActionBarItemColorNormal
changes the color of allActionBarItem
s in normal modegdActionBarItemColorAlt
changes the color of allActionBarItem
s in alternative (pressed/focused) mode
- [NEW] Add of a
MapPinDrawable
helping developers to easily create colored pins forMapView
MapPinDrawable
is based on the original creation of Roman Nurik for the Cycle Hire Surgery
- [NEW] Add of a new
PagedView
widget. APagedView
shows items in a ‘paged’ manner. Pages can be scrolled horizontally by swiping theView
. ThePagedView
uses 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
ThumbnailItemView
now uses anAsyncImageView
instead of the regularImageView
- This change allow developer to use URLs directly via the
greendroid:thumbnailURL
XML attribute or via thethumbnailURL
property 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
setActionBarContentView
more than once was stacking views on top of each other. Starting from nowsetActionBarContentView
acts likesetContentView
and remove all subviews prior setting the new one. - [FIXED] Using one of the
setActionBarContentView
inGDListActivity
was buggy. ThesetActionBarContentView
methods are helpers that should only be used inGDActivity
to help developers adding anActionBar
to their already existing layouts. If you really want a custom layout inGDListActivity
you should be using thecreateLayout
method. - [FIXED] The
GDTabActivity
was not correctly handling clicks on the home button - [FIXED] Add missing leading zero for single digit hex values in the
MD5Utils
class
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 …