public abstract class BaseDialogFragment
extends DialogFragment
Modifier and Type | Field and Description |
---|---|
protected android.app.Dialog |
mDialog |
protected android.view.View |
mRootView |
Constructor and Description |
---|
BaseDialogFragment() |
Modifier and Type | Method and Description |
---|---|
abstract void |
bindData() |
protected abstract void |
findView() |
protected int |
getBackgroundDrawableRes() |
protected abstract int |
getContentView() |
protected int |
getGravity() |
protected float |
getHorizontalMovement()
设置竖直方向偏移量
|
protected int |
getScreenHeightProportion() |
protected float |
getScreenWidthProportion()
屏幕占比
|
protected float |
getVerticalMovement()
设置竖直方向偏移量
|
protected abstract void |
initView() |
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
show(FragmentManager manager) |
protected android.view.View mRootView
protected android.app.Dialog mDialog
public void onCreate(android.os.Bundle savedInstanceState)
public void onActivityCreated(android.os.Bundle savedInstanceState)
protected int getGravity()
protected int getScreenHeightProportion()
protected int getBackgroundDrawableRes()
protected float getScreenWidthProportion()
protected float getVerticalMovement()
protected float getHorizontalMovement()
public void show(FragmentManager manager)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
protected abstract void findView()
protected abstract void initView()
public abstract void bindData()
protected abstract int getContentView()