Java Code Examples for me.imid.swipebacklayout.lib.SwipeBackLayout#addSwipeListener()
The following examples show how to use
me.imid.swipebacklayout.lib.SwipeBackLayout#addSwipeListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SwipeBackActivityHelper.java From SimpleNews with Apache License 2.0 | 6 votes |
@SuppressWarnings("deprecation") public void onActivityCreate() { mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mActivity.getWindow().getDecorView().setBackgroundDrawable(null); mSwipeBackLayout = (SwipeBackLayout) LayoutInflater.from(mActivity).inflate( me.imid.swipebacklayout.lib.R.layout.swipeback_layout, null); mSwipeBackLayout.addSwipeListener(new SwipeBackLayout.SwipeListener() { @Override public void onScrollStateChange(int state, float scrollPercent) { } @Override public void onEdgeTouch(int edgeFlag) { Utils.convertActivityToTranslucent(mActivity); } @Override public void onScrollOverThreshold() { } }); }
Example 2
Source File: SwipeBackActivityHelper.java From MaterialQQLite with Apache License 2.0 | 6 votes |
@SuppressWarnings("deprecation") public void onActivityCreate() { mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mActivity.getWindow().getDecorView().setBackgroundDrawable(null); mSwipeBackLayout = (SwipeBackLayout) LayoutInflater.from(mActivity).inflate( me.imid.swipebacklayout.lib.R.layout.swipeback_layout, null); mSwipeBackLayout.addSwipeListener(new SwipeBackLayout.SwipeListener() { @Override public void onScrollStateChange(int state, float scrollPercent) { } @Override public void onEdgeTouch(int edgeFlag) { Utils.convertActivityToTranslucent(mActivity); } @Override public void onScrollOverThreshold() { } }); }
Example 3
Source File: SwipeBackActivityHelper.java From light-novel-library_Wenku8_Android with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("deprecation") public void onActivityCreate() { mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mActivity.getWindow().getDecorView().setBackgroundDrawable(null); mSwipeBackLayout = (SwipeBackLayout) LayoutInflater.from(mActivity).inflate( R.layout.swipeback_layout, null); mSwipeBackLayout.addSwipeListener(new SwipeBackLayout.SwipeListener() { @Override public void onScrollStateChange(int state, float scrollPercent) { } @Override public void onEdgeTouch(int edgeFlag) { Utils.convertActivityToTranslucent(mActivity); } @Override public void onScrollOverThreshold() { } }); }
Example 4
Source File: SwipeBackActivityHelper.java From light-novel-library_Wenku8_Android with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("deprecation") public void onActivityCreate() { mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mActivity.getWindow().getDecorView().setBackgroundDrawable(null); mSwipeBackLayout = (SwipeBackLayout) LayoutInflater.from(mActivity).inflate( R.layout.swipeback_layout, null); mSwipeBackLayout.addSwipeListener(new SwipeBackLayout.SwipeListener() { @Override public void onScrollStateChange(int state, float scrollPercent) { } @Override public void onEdgeTouch(int edgeFlag) { Utils.convertActivityToTranslucent(mActivity); } @Override public void onScrollOverThreshold() { } }); }
Example 5
Source File: SwipeBackActivityHelper.java From ChipHellClient with Apache License 2.0 | 6 votes |
@SuppressWarnings("deprecation") public void onActivityCreate() { mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); mActivity.getWindow().getDecorView().setBackgroundDrawable(null); mSwipeBackLayout = (SwipeBackLayout) LayoutInflater.from(mActivity).inflate( me.imid.swipebacklayout.lib.R.layout.swipeback_layout, null); mSwipeBackLayout.addSwipeListener(new SwipeBackLayout.SwipeListener() { @Override public void onScrollStateChange(int state, float scrollPercent) { } @Override public void onEdgeTouch(int edgeFlag) { Utils.convertActivityToTranslucent(mActivity); } @Override public void onScrollOverThreshold() { } }); }