public class SwipeBackActivityHelper extends Object
| 构造器和说明 |
|---|
SwipeBackActivityHelper(android.app.Activity activity) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
convertActivityFromTranslucent()
Convert a translucent themed Activity
R.attr.windowIsTranslucent to a fullscreen opaque
Activity. |
void |
convertActivityToTranslucent()
Convert a translucent themed Activity
R.attr.windowIsTranslucent back from opaque to
translucent following a call to convertActivityFromTranslucent()
. |
android.view.View |
findViewById(int id) |
SwipeBackLayout |
getSwipeBackLayout() |
void |
onActivityCreate() |
void |
onPostCreate() |
public void onActivityCreate()
public void onPostCreate()
public android.view.View findViewById(int id)
public SwipeBackLayout getSwipeBackLayout()
public void convertActivityFromTranslucent()
R.attr.windowIsTranslucent to a fullscreen opaque
Activity.
Call this whenever the background of a translucent Activity has changed
to become opaque. Doing so will allow the Surface of
the Activity behind to be released.
This call has no effect on non-translucent activities or on activities
with the R.attr.windowIsFloating attribute.
public void convertActivityToTranslucent()
R.attr.windowIsTranslucent back from opaque to
translucent following a call to convertActivityFromTranslucent()
.
Calling this allows the Activity behind this one to be seen again. Once all such Activities have been redrawn
This call has no effect on non-translucent activities or on activities
with the R.attr.windowIsFloating attribute.