Skip to content

Commit

Permalink
Version 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Mottier committed Mar 22, 2011
1 parent d6ef60d commit 180145d
Show file tree
Hide file tree
Showing 67 changed files with 1,348 additions and 1,088 deletions.
52 changes: 34 additions & 18 deletions CHANGES.mdown
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
GreenDroid Changes History
==========================
#GreenDroid Changes History

Changes from March 1, 2011
-----------------------------
##Changes from March 22, 2011 (version 0.11)

- [NEW] Add of a complete image loader system: AsyncImageView widget, ImageLoader, ImageCache, etc.
- [FIXED] Class check issue in GDTabActivity
- [NEW] GDListActivity does not force Normal ActionBar mode anymore
- [NEW] Add of a new ActionBar.Type: Empty
* In this mode, the ActionBar has no "Home" button
- [NEW] addActionBarItem() methods now return the newly added ActionBarItem
- [NEW] ActionBarItem can be "tagged". This makes ActionBarItem click handling way easier
- [NEW] Add of a removeItem(ActionBarItem) in the ActionBar widget
- [NEW] Add of a new ActionBarDrawable class that helps the developer easily creating Drawable for ActionBars
* The ActionBarDrawable takes a Drawable and automatically fill the shape with the white or black color
- [CHANGE] Refactor on some GreenDroid style. Styles related to `ItemView`s are now named `@style/GreenDroid.Widget.ItemView.<The-Item-View>`
* This change may impact your code if you are extending GreenDroid's styles. There is no impact otherwise
- [CHANGE] The `SegmentedBar` style has been refactored to be in accordance with other widget styles. It is now in `@style/GreenDroid.Widget`
- [CHANGE] All XML files have been re-indented with tabs instead of spaces (used in Java files)
- [FIXED] `ActionBar` title background has previously inherited from the `ActionBar`. As a result, using translucent backgrounds was quite hazardous.
* Starting for now, the `ActionBar` title has no background. The background is only given by the `ActionBar` itself.
- [FIXED] The `ImageLoaderCallback.onImageLoadingFailed(ImageLoader loader, Throwable exception)` was sometimes called with a null `Throwable`.
- [NEW] New `setBitmapFactoryOptions(BitmapFactory.Options)` and `setInDensity(int)` / `greendroid:inDensity` methods to `AsyncImageView`
* May be used to bypass the default image loading behavior. By default images loaded from the network are all considered
as mdpi images. Using a `BitmapFactory.Options` object with a inDensity to `DisplayMetrics.DENSITY_HIGH` will load images as hdpi images.
- [NEW] Add of new Javadoc on some GreenDroid's classes (`AsyncImageView`, `Time`, `ImageProcessor`, etc.)
- [NEW] Add of new `ActionBarItem.Type`. Almost 10 new icons are now available. Icons are extracted from the [Android Assets Studio][android_assets_studio] project by Roman Nurik
- [NEW] GreenDroid now has a version number! This makes GreenDroid's versions and history tracking way easier.

##Changes from March 1, 2011 (version 0.10)

- [NEW] Add of a complete image loader system: `AsyncImageView` widget, `ImageLoader`, `ImageCache`, etc.
- [FIXED] Class check issue in `GDTabActivity`
- [NEW] `GDListActivity` does not force normal `ActionBar` mode anymore
- [NEW] Add of a new `ActionBar.Type`: `ÀctionBar.Type.Empty`
* In this mode, the `ActionBar` has no "Home" button
- [NEW] `addActionBarItem()` methods now return the newly added `ActionBarItem`
- [NEW] `ActionBarItem` can be "tagged". This makes `ActionBarItem` click handling way easier
- [NEW] Add of a `removeItem(ActionBarItem)` in the `ActionBar` widget
- [NEW] Add of a new `ActionBarDrawable` class that helps the developer easily creating `Drawable`s for `ActionBar`s
* The `ActionBarDrawable` takes a `Drawable` and automatically fill the shape with the white or black color
depending on its current state. It allows you to decrease the size of your project. (GreenDroid's size
has also decreased thanks to this optimization)
- [NEW] Add of a GDMapActivity
- [NEW] Add of a `GDMapActivity`
* In order to use it you have to replace GreenDroid by the new GreenDroid-GoogleAPI library.
GreenDroid-GoogleAPIs already integrates the GreenDroid library.
- [NEW] Add of a new ActionBarActivity extra parameter: GD\_ACTION\_BAR_VISIBILITY
* Enable ActionBar visibility changes from paramters passed via an Intent. This may be useful when using
a reusable GDActivity inside as it and inside GDTabActivity in the same app.
- [NEW] Add of a new `ActionBarActivity` extra parameter: `ÀctionBarActivity.GD_ACTION_BAR_VISIBILITY`
* Enable `ActionBar` visibility changes from parameters passed via an `Intent`. This may be useful when using
a reusable `GDActivity` inside a `GDTabActivity`.

[android_assets_studio]: http://j.mp/androidassetstudio
2 changes: 1 addition & 1 deletion GDCatalog/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
split.density=false
# Project target.
target=android-4
android.library.reference.1=../GreenDroid/
android.library.reference.1=../GreenDroid
2 changes: 1 addition & 1 deletion GDCatalog/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<resources>

<style name="SeparatorItemView" parent="GreenDroid.SeparatorItemView">
<style name="SeparatorItemView" parent="GreenDroid.Widget.ItemView.SeparatorItemView">
<item name="android:background">@drawable/separator_bg</item>
</style>

Expand Down
6 changes: 3 additions & 3 deletions GreenDroid/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyrilmottier.android.greendroid"
android:versionCode="1"
android:versionName="1.0" />
package="com.cyrilmottier.android.greendroid"
android:versionCode="1"
android:versionName="1.0" />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_eye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-hdpi/gd_action_bar_mail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_eye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GreenDroid/res/drawable-mdpi/gd_action_bar_mail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions GreenDroid/res/drawable/gd_action_bar_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
-->

<selector
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">

<item
android:state_pressed="true"
android:drawable="@drawable/gd_action_bar_item_pressed" />
<item
android:state_focused="true"
android:drawable="@drawable/gd_action_bar_item_focused" />
<item
android:state_pressed="true"
android:drawable="@drawable/gd_action_bar_item_pressed" />

<item
android:state_focused="true"
android:drawable="@drawable/gd_action_bar_item_focused" />

</selector>
3 changes: 3 additions & 0 deletions GreenDroid/res/drawable/gd_quick_action_bar_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
<item
android:state_window_focused="false"
android:drawable="@drawable/gd_quick_action_bar_item_normal" />

<item
android:state_pressed="true"
android:drawable="@drawable/gd_quick_action_bar_item_pressed" />

<item
android:state_focused="true"
android:drawable="@drawable/gd_quick_action_bar_item_selected" />

<item
android:drawable="@drawable/gd_quick_action_bar_item_normal" />

Expand Down
42 changes: 22 additions & 20 deletions GreenDroid/res/drawable/gd_segment_checkmark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,30 @@
-->

<selector
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Enabled states -->
<!-- Enabled states -->

<item
android:state_checked="true"
android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_on" />
<item
android:state_checked="false"
android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_off" />
<item
android:state_checked="true"
android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_on" />

<item
android:state_checked="false"
android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_off" />

<item
android:state_checked="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_off" />
<item
android:state_checked="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_on" />
<item
android:state_checked="false"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_off" />

<item
android:state_checked="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_checkmark_on" />

</selector>
22 changes: 11 additions & 11 deletions GreenDroid/res/drawable/gd_segment_label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
-->

<selector
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">

<item
android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_label_pressed" />
<item
android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_label_pressed" />

<item
android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_label_focused" />
<item
android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/gd_segment_label_focused" />

<item
android:drawable="@drawable/gd_segment_label_normal" />
<item
android:drawable="@drawable/gd_segment_label_normal" />

</selector>
45 changes: 23 additions & 22 deletions GreenDroid/res/drawable/gd_tab_indicator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,27 @@
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/gd_tab_indicator_pressed"
/>
<item
android:state_selected="false"
android:state_focused="false"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_unselected"
/>
<item
android:state_selected="true"
android:state_focused="false"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_normal"
/>
<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_selected"
/>

<item
android:state_pressed="true"
android:drawable="@drawable/gd_tab_indicator_pressed" />

<item
android:state_selected="false"
android:state_focused="false"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_unselected" />

<item
android:state_selected="true"
android:state_focused="false"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_normal" />

<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/gd_tab_indicator_selected" />

</selector>
30 changes: 15 additions & 15 deletions GreenDroid/res/layout/gd_action_bar_dashboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
-->

<merge
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">

<ImageButton
android:id="@+id/gd_action_bar_home_item"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:scaleType="center"
android:paddingLeft="7dp"
android:src="?attr/gdActionBarApplicationDrawable"
android:background="@null" />
<ImageButton
android:id="@+id/gd_action_bar_home_item"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:scaleType="center"
android:paddingLeft="7dp"
android:src="?attr/gdActionBarApplicationDrawable"
android:background="@null" />

<!-- Spacer view to right-align dashboard icons -->
<View
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:visibility="invisible" />
<!-- Spacer view to right-align dashboard icons -->
<View
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:visibility="invisible" />

</merge>
6 changes: 3 additions & 3 deletions GreenDroid/res/layout/gd_content_empty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@

<greendroid.widget.ActionBarHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/gd_action_bar_host"
android:id="@id/gd_action_bar_host"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">

<greendroid.widget.ActionBar
style="@style/GreenDroid.Widget.ActionBar.Empty"
android:id="@id/gd_action_bar"
android:layout_height="@dimen/gd_action_bar_height"
android:layout_width="fill_parent"
android:layout_height="@dimen/gd_action_bar_height"
android:layout_width="fill_parent"
android:background="?attr/gdActionBarBackground" />

<FrameLayout
Expand Down
6 changes: 3 additions & 3 deletions GreenDroid/res/layout/gd_content_normal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

<greendroid.widget.ActionBarHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/gd_action_bar_host"
android:id="@id/gd_action_bar_host"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">

<greendroid.widget.ActionBar
android:id="@id/gd_action_bar"
android:layout_height="@dimen/gd_action_bar_height"
android:layout_width="fill_parent"
android:layout_height="@dimen/gd_action_bar_height"
android:layout_width="fill_parent"
android:background="?attr/gdActionBarBackground" />

<FrameLayout
Expand Down
14 changes: 7 additions & 7 deletions GreenDroid/res/layout/gd_description_item_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
-->

<greendroid.widget.itemview.DescriptionItemView
xmlns:android="http://schemas.android.com/apk/res/android"
style="?attr/gdDescriptionItemViewStyle"
android:id="@+id/gd_description"
android:layout_height="wrap_content"
android:minHeight="?attr/gdItemViewPreferredHeight"
android:paddingLeft="?attr/gdItemViewPreferredPaddingLeft"
xmlns:android="http://schemas.android.com/apk/res/android"
style="?attr/gdDescriptionItemViewStyle"
android:id="@+id/gd_description"
android:layout_height="wrap_content"
android:minHeight="?attr/gdItemViewPreferredHeight"
android:paddingLeft="?attr/gdItemViewPreferredPaddingLeft"

android:gravity="center_vertical" />
android:gravity="center_vertical" />
Loading

0 comments on commit 180145d

Please sign in to comment.