Skip to content

Commit

Permalink
Merge branch 'release-1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
markormesher committed Mar 27, 2016
2 parents 02004ff + f63734f commit d927357
Show file tree
Hide file tree
Showing 5 changed files with 9,229 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ buildscript {
}

def version = new Properties()
version['code'] = 4
version['name'] = '1.0.0'
version['code'] = 5
version['name'] = '1.0.1'

def secrets = getSecrets()

Expand Down
6 changes: 3 additions & 3 deletions fab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ buildscript {
}

def version = new Properties()
version['code'] = 4
version['name'] = '1.0.0'
version['code'] = 5
version['name'] = '1.0.1'

apply plugin: 'me.tatarka.retrolambda'

Expand Down Expand Up @@ -104,4 +104,4 @@ generateRelease.dependsOn(zipRelease)
artifacts {
archives androidSourcesJar
archives androidJavadocsJar
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void resetIcon() {
/**
* Sets the colour of the FAB background.
*
* @param colour the colour of the FAB background
* @param colour the colour of the FAB background, in aRGB format
*/
public void setBackgroundColour(int colour) {
cardView.setCardBackgroundColor(colour);
Expand Down Expand Up @@ -177,6 +177,7 @@ private void onClick() {
* By setting an adapter, the speed-dial menu will be activated and the click listener will be removed.
*
* @param menuAdapter the menu adapter to use with this floating action button
* @see uk.co.markormesher.android_fab.SpeedDialMenuAdapter
*/
public void setMenuAdapter(SpeedDialMenuAdapter menuAdapter) {
this.listener = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ public abstract class SpeedDialMenuAdapter {
/**
* Returns the views that should be used for each item in the speed-dial menu.
*
* @param context {@code Context} for the FAB, which can be used to create views
* @param position the position to generate a view for, from 0 (furthest from the FAB) to {@code getCount()} - 1, inclusive
* @return a {@code MenuItemViews} wrapper containing the icon and (optionally) the label for the menu item
* @param context {@code android.content.Context} for the FAB, which can be used to create views
* @param position the position to generate a view for, from 0 (furthest from the FAB) to {@code getCount() - 1} (closest), inclusive
* @return an array of exactly two views
*/
protected abstract MenuItem getViews(Context context, int position);

/**
* Returns the background colour to set for the menu item's "disc".
*
* @param position the position to generate a view for, from 0 (furthest from the FAB) to {@code getCount()} - 1, inclusive
* @param position the position to set the colour for, from 0 (furthest from the FAB) to {@code getCount() - 1} (closest), inclusive
* @return the colour to set
*/
protected int getBackgroundColour(int position) {
Expand Down
Loading

0 comments on commit d927357

Please sign in to comment.