Skip to content

Commit 3a5c8fe

Browse files
committed
Add setDefaultFragmentBackground(int res) to SupportActivity, which is used to change the background of the Fragments.
1 parent 4ff4d6c commit 3a5c8fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fragmentation/src/main/java/me/yokeyword/fragmentation/SupportActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ protected FragmentAnimator onCreateFragmentAnimator() {
8383
}
8484

8585
/**
86-
* 当Fragment的根布局没有设定background时,
86+
* 当Fragment根布局 没有 设定background属性时,
8787
* Fragmentation默认使用Theme的android:windowbackground作为Fragment的背景,
88-
* 改变Fragment背景 (给根布局设定background优先级最高)
88+
* 可以通过该方法改变Fragment背景。
8989
*/
9090
protected void setDefaultFragmentBackground(@DrawableRes int backgroundRes) {
9191
mDefaultFragmentBackground = backgroundRes;

0 commit comments

Comments
 (0)