use of me.yokeyword.fragmentation.SwipeBackLayout in project Fragmentation by YoKeyword.
the class SwipeBackActivity method onActivityCreate.
void onActivityCreate() {
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
getWindow().getDecorView().setBackgroundDrawable(null);
mSwipeBackLayout = new SwipeBackLayout(this);
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
mSwipeBackLayout.setLayoutParams(params);
}
use of me.yokeyword.fragmentation.SwipeBackLayout in project Fragmentation by YoKeyword.
the class SwipeBackFragment method onFragmentCreate.
private void onFragmentCreate() {
mSwipeBackLayout = new SwipeBackLayout(_mActivity);
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
mSwipeBackLayout.setLayoutParams(params);
mSwipeBackLayout.setBackgroundColor(Color.TRANSPARENT);
}
use of me.yokeyword.fragmentation.SwipeBackLayout in project Fragmentation by YoKeyword.
the class SwipeBackFragment method initFragmentBackground.
@Override
protected void initFragmentBackground(View view) {
if (view instanceof SwipeBackLayout) {
View childView = ((SwipeBackLayout) view).getChildAt(0);
setBackground(childView);
} else {
setBackground(view);
}
}
Aggregations