class DrawerBuilder<Parent : ParentItem, Child : ChildItem>
Builder for building the FilterDrawer
Parent
- Type that extends ParentItem
Child
- Type that extends ChildItem
Author
Camerash
See Also
DrawerBuilder(act: Activity)
Give builder a reference to the activity DrawerBuilder()
Builder for building the FilterDrawer |
var childSelectListenerList: ArrayList<OnChildSelectListener<Parent, Child>> |
|
var drawerListener: DrawerListener? |
|
var filterControlClickListener: OnFilterControlClickListener? |
fun addChildSelectListener(childSelectListener: OnChildSelectListener<Parent, Child>): DrawerBuilder<Parent, Child>
Add a OnChildSelectListener to the FilterDrawer |
|
fun appendCustomDrawer(view: View, gravity: Int): DrawerBuilder<Parent, Child>
Add a custom drawer to the layout |
|
fun build(): FilterDrawer<Parent, Child>
Construct the FilterDrawer |
|
fun displayToolbar(display: Boolean): DrawerBuilder<Parent, Child>
If enabled, toolbar in FilterDrawer will be displayed |
|
fun setApplyColor(color: Int): DrawerBuilder<Parent, Child>
Set color resource for the apply button |
|
fun setApplyText(text: String): DrawerBuilder<Parent, Child>
Set text for the apply button |
|
fun setDisplayBelowStatusBar(enable: Boolean): DrawerBuilder<Parent, Child>
If enabled, FilterDrawer will be drawn behind status bar |
|
fun setDrawerListener(drawerListener: DrawerListener): DrawerBuilder<Parent, Child>
Set the DrawerListener to the FilterDrawer |
|
fun setDrawerLockMode(lockMode: Int): DrawerBuilder<Parent, Child>
Set the lock mode of FilterDrawer |
|
fun setFilterControlClickListener(filterControlClickListener: OnFilterControlClickListener): DrawerBuilder<Parent, Child>
Set the OnFilterControlClickListener to the FilterDrawer. |
|
fun setFullscreen(enable: Boolean): DrawerBuilder<Parent, Child>
If enabled, activity will be set to fullscreen |
|
fun setGravity(gravity: Int): DrawerBuilder<Parent, Child>
Set the gravity of the FilterDrawer |
|
fun setResetColor(color: Int): DrawerBuilder<Parent, Child>
Set color resource for the reset button |
|
fun setResetText(text: String): DrawerBuilder<Parent, Child>
Set text for the reset button |
|
fun setSystemUIHidden(enable: Boolean): DrawerBuilder<Parent, Child>
If enabled, system UI will be hidden |
|
fun setToolbarMenu(: Int): DrawerBuilder<Parent, Child>
Set the menu in toolbar |
|
fun setToolbarTitle(title: String): DrawerBuilder<Parent, Child>
Set the title in the toolbar |
|
fun setTranslucentStatusBar(enable: Boolean): DrawerBuilder<Parent, Child>
If enabled, status bar will be translucent |
|
fun with(act: Activity): DrawerBuilder<Parent, Child>
Give builder a reference to the activity |
|
fun withDrawerLayout(resLayout: Int): DrawerBuilder<Parent, Child>
Define a custom layout for the drawer |
|
fun withItems(items: Collection<Parent>): DrawerBuilder<Parent, Child>
Set the filter items |