use of me.imid.swipebacklayout.lib.app.SwipeBackActivityHelper in project android-client by GenesisVision.
the class BaseSwipeBackActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mHelper = new SwipeBackActivityHelper(this);
mHelper.onActivityCreate();
}
use of me.imid.swipebacklayout.lib.app.SwipeBackActivityHelper in project HL4A by HL4A.
the class 基本界面 method onCreate.
@Override
public void onCreate(Bundle $恢复) {
super.onCreate($恢复);
应用.初始化界面(this);
for (应用插件 $单个 : ((基本应用) 环境.取应用()).所有插件) {
$单个.界面新建(this);
}
Intent $意图 = getIntent();
if ($意图.hasExtra("参数")) {
传入参数 = (Object[]) $意图.getSerializableExtra("参数");
}
for (界面插件 $单个 : 所有插件.values()) {
$单个.界面创建事件($恢复);
}
mHelper = new SwipeBackActivityHelper(this);
mHelper.onActivityCreate();
置滑动返回(false);
try {
界面创建事件($恢复);
} catch (Exception $错误) {
应用.跳转错误(线程.取当前线程(), $错误);
结束界面();
}
}
use of me.imid.swipebacklayout.lib.app.SwipeBackActivityHelper in project smartmodule by carozhu.
the class BaseSimpleAppCompatActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
activity = this;
context = this;
/*must init helper*/
mHelper = new SwipeBackActivityHelper(this);
mHelper.onActivityCreate();
swipeback(false);
ActivityManageHelper.getInstance().addActivity(this);
}
use of me.imid.swipebacklayout.lib.app.SwipeBackActivityHelper in project smartmodule by carozhu.
the class BaseSimpleAppCompatActivity method swipeback.
/**
* @param swipebace
* @param primarycolor 设置状态栏颜色值
*/
public void swipeback(boolean swipebace, String primarycolor) {
initViewGuideStateBar(primarycolor);
mHelper = new SwipeBackActivityHelper(this);
mHelper.onActivityCreate();
mSwipeBackLayout = getSwipeBackLayout();
// 设置滑动方向,可设置EDGE_LEFT, EDGE_RIGHT, EDGE_ALL, EDGE_BOTTOM
mSwipeBackLayout.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
mSwipeBackLayout.setEnableGesture(swipebace);
}
use of me.imid.swipebacklayout.lib.app.SwipeBackActivityHelper in project smartmodule by carozhu.
the class BaseSimpleAppCompatActivity method swipeback.
public void swipeback(boolean swipebace) {
initViewStateBar(R.color.default_theme_app_color);
mHelper = new SwipeBackActivityHelper(this);
mHelper.onActivityCreate();
mSwipeBackLayout = getSwipeBackLayout();
// 设置滑动方向,可设置EDGE_LEFT, EDGE_RIGHT, EDGE_ALL, EDGE_BOTTOM
mSwipeBackLayout.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
mSwipeBackLayout.setEnableGesture(swipebace);
}
Aggregations