Skip to content

Commit

Permalink
Merge branch 'release/v0.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jan 11, 2016
2 parents 9ab18a4 + 46e7414 commit 8c8b823
Show file tree
Hide file tree
Showing 13 changed files with 135 additions and 106 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Beside being blazing fast, minimizing the code you need to write, it is also rea
##A quick overview:
- Click / Long-Click listeners
- Selection / Multi-Selection
- Collapsable items
- Write less code, get better results
- Headers
- Footers
Expand All @@ -25,7 +26,7 @@ Beside being blazing fast, minimizing the code you need to write, it is also rea
#Include in your project
##Using Maven
```javascript
compile('com.mikepenz:fastadapter:0.5.6@aar') {
compile('com.mikepenz:fastadapter:0.6.0@aar') {
transitive = true
}
```
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdkVersion 11
targetSdkVersion 23
versionCode 56
versionName '0.5.6'
versionCode 60
versionName '0.6.0'

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down Expand Up @@ -52,7 +52,7 @@ dependencies {

//used to generate the drawer on the left
//https://github.com/mikepenz/MaterialDrawer
compile('com.mikepenz:materialdrawer:5.0.0.fastAdapter.b5-SNAPSHOT@aar') {
compile('com.mikepenz:materialdrawer:4.6.3@aar') {
transitive = true
exclude module: "fastadapter"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected void onCreate(Bundle savedInstanceState) {
public boolean onClick(View v, IAdapter adapter, IItem item, int position) {
if (item instanceof SampleItem) {
if (((SampleItem) item).getSubItems() != null) {
fastAdapter.toggleCollapsible(position);
fastAdapter.toggleExpandable(position);
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void onCreate(Bundle savedInstanceState) {
.withSavedInstance(savedInstanceState)
.withShowDrawerOnFirstLaunch(true)
.addDrawerItems(
new PrimaryDrawerItem().withName(R.string.sample_simple).withSelectable(false).withIdentifier(6).withIcon(MaterialDesignIconic.Icon.gmi_wallpaper),
new PrimaryDrawerItem().withName(R.string.sample_simple).withSelectable(false).withIdentifier(6).withIcon(MaterialDesignIconic.Icon.gmi_format_align_justify),
new PrimaryDrawerItem().withName(R.string.sample_image_list).withSelectable(false).withIdentifier(5).withIcon(MaterialDesignIconic.Icon.gmi_wallpaper),
new PrimaryDrawerItem().withName(R.string.sample_multi_select).withSelectable(false).withIdentifier(1).withIcon(MaterialDesignIconic.Icon.gmi_select_all),
new PrimaryDrawerItem().withName(R.string.sample_collapsible).withSelectable(false).withIdentifier(2).withIcon(MaterialDesignIconic.Icon.gmi_check_all),
Expand Down Expand Up @@ -104,7 +104,7 @@ public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {
public boolean onClick(View v, IAdapter adapter, IItem item, int position) {
if (item instanceof SampleItem) {
if (((SampleItem) item).getSubItems() != null) {
fastAdapter.toggleCollapsible(position);
fastAdapter.toggleExpandable(position);
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import android.view.View;
import android.widget.TextView;

import com.mikepenz.fastadapter.ICollapsible;
import com.mikepenz.fastadapter.IExpandable;
import com.mikepenz.fastadapter.IItem;
import com.mikepenz.fastadapter.app.R;
import com.mikepenz.fastadapter.items.AbstractItem;
Expand All @@ -24,14 +24,14 @@
/**
* Created by mikepenz on 28.12.15.
*/
public class SampleItem extends AbstractItem<SampleItem, SampleItem.ViewHolder> implements ICollapsible<SampleItem, IItem> {
public class SampleItem extends AbstractItem<SampleItem, SampleItem.ViewHolder> implements IExpandable<SampleItem, IItem> {

public String header;
public StringHolder name;
public StringHolder description;

private List<IItem> mSubItems;
private boolean mCollapsed = true;
private boolean mExpanded = false;

public SampleItem withHeader(String header) {
this.header = header;
Expand Down Expand Up @@ -59,13 +59,13 @@ public SampleItem withDescription(@StringRes int descriptionRes) {
}

@Override
public boolean isCollapsed() {
return mCollapsed;
public boolean isExpanded() {
return mExpanded;
}

@Override
public SampleItem withCollapsed(boolean collapsed) {
mCollapsed = collapsed;
public SampleItem withIsExpanded(boolean expaned) {
mExpanded = expaned;
return this;
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ org.gradle.daemon=true
org.gradle.parallel=true

# Maven stuff
VERSION_NAME=0.5.6
VERSION_CODE=56
VERSION_NAME=0.6.0
VERSION_CODE=60
GROUP=com.mikepenz

POM_DESCRIPTION=FastAdapter Library
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionCode 56
versionName '0.5.6'
versionCode 60
versionName '0.6.0'
}
buildTypes {
release {
Expand Down
Loading

0 comments on commit 8c8b823

Please sign in to comment.