Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MarkMjw/PullScrollView
1.仿照新浪微博Android客户端个人中心的ScrollView,下拉背景伸缩回弹效果。 2.ScrollView仿IOS回弹效果。
https://github.com/MarkMjw/PullScrollView
Last synced: 3 months ago
JSON representation
1.仿照新浪微博Android客户端个人中心的ScrollView,下拉背景伸缩回弹效果。 2.ScrollView仿IOS回弹效果。
- Host: GitHub
- URL: https://github.com/MarkMjw/PullScrollView
- Owner: MarkMjw
- License: apache-2.0
- Created: 2013-10-09T01:55:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T00:57:26.000Z (about 7 years ago)
- Last Synced: 2024-07-01T10:58:11.914Z (5 months ago)
- Language: Java
- Size: 1.42 MB
- Stars: 860
- Watchers: 49
- Forks: 323
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PullScrollView
===========*注:本项目使用Android Studio开发*
## **本例包含ScrollView的两种实现:** ##
>1.仿照新浪微博Android客户端个人中心的ScrollView,下拉背景伸缩回弹效果。
>2.ScrollView仿IOS回弹效果。## **使用示例** ##
```java
1、
mScrollView = (PullScrollView) findViewById(R.id.scroll_view);
mHeadImg = (ImageView) findViewById(R.id.background_img);
mScrollView.setOnTurnListener(this);
mScrollView.init(mHeadImg);
2、
获取头部View进行修改示例:
TextView tvHello = (TextView)mHeadImg.findViewById(R.id.tv_hello);
tvHello.setText("world");
```##Screenshots
![Screenshot 0](https://raw.github.com/MarkMjw/PullScrollView/master/Screenshots/0.png)![Screenshot 1](https://raw.github.com/MarkMjw/PullScrollView/master/Screenshots/1.png)
![Screenshot 2](https://raw.github.com/MarkMjw/PullScrollView/master/Screenshots/2.png)
License
=======Copyright (C) 2014 MarkMjw
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.