Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodJiangBody committed Jun 6, 2017
1 parent fdee952 commit 998b912
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 66 deletions.
69 changes: 69 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 0 additions & 66 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions README.md
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();
```

0 comments on commit 998b912

Please sign in to comment.