Skip to content

Commit

Permalink
change fun name, add screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
goyourfly committed Jun 12, 2017
1 parent 6134554 commit a6a2b9e
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Demo1Activity : RecyclerActivity() {
.with(this)
.adapter(DemoSectionAdapter())
.decorateFactory(RadioBtnFactory(gravity = Gravity.RIGHT))
.ignore(arrayOf(1))
.ignoreViewType(arrayOf(1))
.stateChangeListener(stateChangeListener)
.build()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class Demo2Activity : RecyclerActivity() {
recycler.adapter = MultipleSelect
.with(this)
.adapter(DemoSectionAdapter())
.decorateFactory(CheckBoxFactory(gravity = Gravity.LEFT))
.decorateFactory(CheckBoxFactory(gravity = Gravity.RIGHT))
.customMenu(SimpleDeleteMenuBar(this,resources.getColor(R.color.colorAccent),Gravity.BOTTOM))
.ignore(arrayOf(1))
.ignoreViewType(arrayOf(1))
.stateChangeListener(stateChangeListener)
.build()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Demo3Activity : RecyclerActivity() {
.with(this)
.adapter(DemoAdapter())
.decorateFactory(ColorFactory())
.customMenu(SimpleDeleteSelectAllMenuBar(this,resources.getColor(R.color.colorAccent)))
.customMenu(SimpleDeleteSelectAllMenuBar(this,resources.getColor(R.color.colorPrimary)))
.build()

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Demo5Activity : RecyclerActivity() {
.with(this)
.adapter(DemoAdapter())
.decorateFactory(ColorFactory())
.customMenu(MyMenuBar(this, menu_select, Color.BLACK))
.customMenu(MyMenuBar(this, menu_select, resources.getColor(R.color.colorPrimary)))
.build()

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
MultipleAdapter adapter = MultipleSelect
.with(this)
.adapter(new DemoSectionAdapter())
.ignore(new Integer[]{1})
.decorateFactory(new CheckBoxFactory(Color.RED, 300, Gravity.LEFT | Gravity.BOTTOM, 8))
.ignoreViewType(new Integer[]{1})
.decorateFactory(new CheckBoxFactory(Color.RED, 300, Gravity.RIGHT, 8))
.build();
getRecycler().setAdapter(adapter);
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/custom_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:id="@+id/layout_control"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="@color/colorAccent">
android:background="@color/colorPrimary">

<TextView
android:id="@+id/title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object MultipleSelect {
return this
}

fun ignore(ignore: Array<Int>):Builder{
fun ignoreViewType(ignore: Array<Int>):Builder{
this.ignoreType = ignore
return this
}
Expand Down
Binary file added screenshot/Demo1.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 screenshot/Demo2.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 screenshot/Demo3.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 screenshot/Demo4.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 screenshot/Demo5.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 screenshot/Demo6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a6a2b9e

Please sign in to comment.