-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdee952
commit 998b912
Showing
3 changed files
with
93 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
> 可以把slidinglibrary库放到项目中,或者将里面的文件提取出来放在项目中。 | ||
## 注意: | ||
1,需要在项目的主题styles中添加 | ||
``` | ||
<item name="android:windowIsTranslucent">true</item> | ||
<item name="android:windowBackground">@color/touming</item> | ||
``` | ||
达到背景页面为透明的效果,其中touming是#00ffffff | ||
|
||
2,activity页面根布局需要设置背景颜色,要不会透明 | ||
|
||
## 用法: | ||
|
||
1,在要Intent到指定的activity页面时在startActivity()后面添加 | ||
``` | ||
AnimationUtil.getInstance(MainActivity.this).setAnimation(); | ||
``` | ||
目的是统一活动页面滑动的动画效果 | ||
|
||
2,在要右滑关闭的activity中调用 | ||
``` | ||
AnimationUtil.getInstance(SecondActivity.this).setSlidingFinish(); | ||
``` |