public class MaterializeBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected android.app.Activity |
mActivity |
protected android.view.ViewGroup |
mContainer |
protected android.view.ViewGroup.LayoutParams |
mContainerLayoutParams |
protected android.view.ViewGroup |
mContentRoot |
protected boolean |
mFullscreen |
protected boolean |
mNavigationBarPadding |
protected android.view.ViewGroup |
mRootView |
protected IScrimInsetsLayout |
mScrimInsetsLayout |
protected int |
mStatusBarColor |
protected int |
mStatusBarColorRes |
protected boolean |
mStatusBarPadding |
protected boolean |
mSystemUIHidden |
protected boolean |
mTintNavigationBar |
protected boolean |
mTintStatusBar |
protected boolean |
mTranslucentNavigationBarProgrammatically |
protected boolean |
mTranslucentStatusBarProgrammatically |
protected boolean |
mTransparentNavigationBar |
protected boolean |
mTransparentStatusBar |
protected boolean |
mUseScrimInsetsLayout |
| Constructor and Description |
|---|
MaterializeBuilder()
default constructor
|
MaterializeBuilder(android.app.Activity activity)
constructor with activity instead of
|
| Modifier and Type | Method and Description |
|---|---|
Materialize |
build() |
MaterializeBuilder |
withActivity(android.app.Activity activity)
Pass the activity you use the drawer in ;)
This is required if you want to set any values by resource
|
MaterializeBuilder |
withContainer(android.view.ViewGroup container)
set a container view here if you want the ScrimInsetsFrameLayout to be hosted inside another viewGroup
|
MaterializeBuilder |
withContainer(android.view.ViewGroup container,
android.view.ViewGroup.LayoutParams layoutParams)
set the layout which will host the ScrimInsetsFrameLayout and its layoutParams
|
MaterializeBuilder |
withContainerLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
set the layout params for the container which will host the ScrimInsetsFrameLayout
|
MaterializeBuilder |
withFullscreen(boolean fullscreen)
Set to true if the used theme has a translucent statusBar
and navigationBar and you want to manage the padding on your own.
|
MaterializeBuilder |
withNavigationBarPadding(boolean navigationBarPadding) |
MaterializeBuilder |
withRootView(int rootViewRes)
Pass the rootView as resource of the DrawerBuilder which will be used to inflate the views in
|
MaterializeBuilder |
withRootView(android.view.ViewGroup rootView)
Pass the rootView of the MaterializeBuilder which will be used to inflate the views in
|
MaterializeBuilder |
withStatusBarColor(int statusBarColor)
Set the statusBarColor color for this activity
|
MaterializeBuilder |
withStatusBarColorRes(int statusBarColorRes)
Set the statusBarColor color for this activity from a resource
|
MaterializeBuilder |
withStatusBarPadding(boolean statusBarPadding) |
MaterializeBuilder |
withSystemUIHidden(boolean systemUIHidden)
Set to true if you use your app in complete fullscreen mode
with hidden statusBar and navigationBar
|
MaterializeBuilder |
withTintedNavigationBar(boolean tintedNavigationBar)
set if the ScrimInsetsLayout should tint the NavigationBar
|
MaterializeBuilder |
withTintedStatusBar(boolean tintedStatusBar)
set if the ScrimInsetsLayout should tint the StatusBar
|
MaterializeBuilder |
withTranslucentNavigationBarProgrammatically(boolean translucentNavigationBarProgrammatically)
set this to true if you want a translucent navigation bar.
|
MaterializeBuilder |
withTranslucentStatusBarProgrammatically(boolean translucentStatusBarProgrammatically)
set this to false if you want no translucent statusBar.
|
MaterializeBuilder |
withTransparentNavigationBar(boolean navigationBar) |
MaterializeBuilder |
withTransparentStatusBar(boolean transparentStatusBar) |
MaterializeBuilder |
withUseScrimInsetsLayout(boolean useScrimInsetsLayout)
Defines if we should use the ScrimInsetsLayout in addition
|
protected android.app.Activity mActivity
protected android.view.ViewGroup mRootView
protected android.view.ViewGroup mContentRoot
protected IScrimInsetsLayout mScrimInsetsLayout
protected boolean mUseScrimInsetsLayout
protected int mStatusBarColor
protected int mStatusBarColorRes
protected boolean mTransparentStatusBar
protected boolean mTranslucentStatusBarProgrammatically
protected boolean mStatusBarPadding
protected boolean mTintStatusBar
protected boolean mTranslucentNavigationBarProgrammatically
protected boolean mTransparentNavigationBar
protected boolean mNavigationBarPadding
protected boolean mTintNavigationBar
protected boolean mFullscreen
protected boolean mSystemUIHidden
protected android.view.ViewGroup mContainer
protected android.view.ViewGroup.LayoutParams mContainerLayoutParams
public MaterializeBuilder()
public MaterializeBuilder(android.app.Activity activity)
activity - public MaterializeBuilder withActivity(android.app.Activity activity)
activity - public MaterializeBuilder withRootView(android.view.ViewGroup rootView)
rootView - public MaterializeBuilder withRootView(int rootViewRes)
rootViewRes - public MaterializeBuilder withUseScrimInsetsLayout(boolean useScrimInsetsLayout)
useScrimInsetsLayout - defines to add the ScrimInsetsLayoutpublic MaterializeBuilder withStatusBarColor(int statusBarColor)
statusBarColor - public MaterializeBuilder withStatusBarColorRes(int statusBarColorRes)
statusBarColorRes - public MaterializeBuilder withTransparentStatusBar(boolean transparentStatusBar)
transparentStatusBar - public MaterializeBuilder withTranslucentStatusBarProgrammatically(boolean translucentStatusBarProgrammatically)
translucentStatusBarProgrammatically - public MaterializeBuilder withStatusBarPadding(boolean statusBarPadding)
statusBarPadding - public MaterializeBuilder withTintedStatusBar(boolean tintedStatusBar)
tintedStatusBar - public MaterializeBuilder withTranslucentNavigationBarProgrammatically(boolean translucentNavigationBarProgrammatically)
translucentNavigationBarProgrammatically - public MaterializeBuilder withTransparentNavigationBar(boolean navigationBar)
navigationBar - public MaterializeBuilder withNavigationBarPadding(boolean navigationBarPadding)
navigationBarPadding - public MaterializeBuilder withTintedNavigationBar(boolean tintedNavigationBar)
tintedNavigationBar - public MaterializeBuilder withFullscreen(boolean fullscreen)
fullscreen - public MaterializeBuilder withSystemUIHidden(boolean systemUIHidden)
systemUIHidden - public MaterializeBuilder withContainer(android.view.ViewGroup container)
container - public MaterializeBuilder withContainerLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
layoutParams - public MaterializeBuilder withContainer(android.view.ViewGroup container, android.view.ViewGroup.LayoutParams layoutParams)
container - layoutParams - public Materialize build()