PLA(PinterestLikeAdapterView)
==================================
-
Open source project in order to implement pinterest like list view on android.
(You can check how pinterest app looks like form below link..)
https://play.google.com/store/apps/details?id=com.pinterest&hl=en
This project is statred based on sony deveoper's blog post 'making your own 3d list'.
http://developer.sonymobile.com/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
But, currenty it is implemented based on android framework 2.3's list view source.
You can check modified list view sources in internal package.
Not supported Features
---------------
* Entry from XML layout.
* Choice Mode & Item Selection.
* Filter
* Handle Key Event & Arrow Scrolling..
TODO:
---------------
* 下拉刷新后保持当前位置
* 多选模式
* 图片的宽度判断
Screen Shot
----------------
新截图
![01](https://github.com/dodola/PinterestLikeAdapterView/raw/master/01.png)
![02](https://github.com/dodola/PinterestLikeAdapterView/raw/master/02.png)
![03](https://github.com/dodola/PinterestLikeAdapterView/raw/master/03.png)
This is a screen shot of sample activity.
![Example Image][3]
How to use
-------------
*To run Sample App.*
1. clone project.
2. run on your android phone.
3. in option menu, you can add items or lunch pull-to-refresh sample.
*To use Pinterest Like Multi Column View.*
1. check this project as library project.
2. MultiColumListView is the view what you need.
*To use pull-to-refresh features.*
1. check this project as library project.
2. MultiColumnPullToRefreshListView class in extra folder is what you need.
Attributes
-----------
* **plaColumnNumber**
Number of column. (default value is 2)
* **plaLandscapeColumnNumber**
Number of column in landscape mode (the orientation that window's width is longer than height.)
Overridable Methods
--------------------
PLA_ListView was made based on Android 2.3 Framework's ListView,
and support those protected methods to let a user customize list view's behavior.
@Override
protected void onMeasureChild(View child, int position, int widthMeasureSpec, int heightMeasureSpec);
@Override
protected void onItemAddedToList(int position, boolean flow );
@Override
protected void onLayoutSync(int syncPos);
@Override
protected void onLayoutSyncFinished(int syncPos);
@Override
protected int getFillChildBottom();
@Override
protected int getFillChildTop();
@Override
protected int getScrollChildBottom();
@Override
protected int getScrollChildTop();
@Override
protected int getItemLeft(int pos);
@Override
protected int getItemTop( int pos );
@Override
protected int getItemBottom( int pos );
@Override
protected void onAdjustChildViews( boolean down );
Change Log
-----------
**2012.11.7**
http://developer.sonymobile.com/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
기반으로 러프하게 작성되었습니다.
**2012.11.8**
패키지 구조가 com.huewu.pla.* 형태로 변경되었습니다.
안드로이드 2.3 버전의 ListView 기반으로 수정되었습니다. (Don't reinvent the wheel)
프레임워크 소스 중 리스트 뷰 관련 파일을 긁어와 많은 Rabbit Hole 을 땜방했습니다.
결과물은 com.huewu.pla.lib.internal 패키지를 참고하시기 바랍니다.
**2012.11.9**
Android-PullToRefresh 라이브러이와 연동되도록 extra package 를 추가했습니다.
이 오픈소스 프로젝트를 기반으로, https://github.com/chrisbanes/Android-PullToRefresh
해당 소스의 일부 내용을 수정 했습니다. (확장을 위한 visiblity)
스크롤 업/다움 시 그리고 어댑터에 아이템 추가 시 컬럼 위치가 변경되는 버그를 수정했습니다.
**2012.11.10**
xml layout 상에서 컬럼 수를 지정할 수 있도록 두 개의 Attribute 를 추가했습니다.
*plaColumnNumber*
*plaLandscapeColumnNumber*
ActionBarSherlock 라이브러리와 함께 사용할 시 발생하는 Attriubte 충돌 문제를 수정했습니다.
**2012.11.12**
Fling 및 Scroll 시 영역 계산이 제대로 이루어지지 않아서 스크롤이 끝까지 이루어지지 않거나, 화면이 떨리는 버그를 수정했습니다.
Override 가능한 함수들의 이름을 이해하기 쉽게(?) 변경했습니다.
**2012.11.13**
Header View 를 정상적으로 지원합니다.
Pull-To-Refresh 기능을 위해, 기존 사용하던 오픈 소스 대신
https://github.com/erikwt/PullToRefresh-ListView
를 사용하도록 수정하였습니다. 다른 프로젝트와 의존성 없이 사용 가능합니다.
**2012.11.14**
하나 이상의 Header View 와 Footer View 를 지원합니다.
**2012.11.22**
첫번째 아이템이 보이는 경우, 각 컬럼의 Top 포지션을 강제로 정렬 시키도록 수정했습니다.
**2012.11.26**
리스트에 새로운 아이템이 추가되는 경우 Fling 속도가 비정상적으로 빨라지는 버그를 수정했습니다.
**2012.11.28**
Layout 이벤트 시, 아이템의 위치가 변경되는 버그를 수정했습니다.
Item Select 관련된 코드가 제거되었습니다.
TODO
---------------------------------------------
> 1. Fling 및 스크롤바를 지원하지 않습니다.
> 2. Scroll Up / Down 시 재 정렬되는 아이템의 위치가 변경되는 버그가 있습니다.
> 3. 리스트의 마지막 부분에서 스크롤이 자연스럽지 않습니다.
> 4. 어뎁터에 데이터를 추가해도 정상적으로 동작
> 5. PullToRefresh 라이브러리와 연동.
> 6. Fling 속도가 이상함.
> 7. 복잡한 뷰를 사용하는 경우, 스크롤 할 떄 마다 뷰의 위치가 Y Position 이 변경됩니다.
8. 어댑터에 데이터가 삭제, 변경되거나 중간에 삽입 되는 경우 처리
*그외 아주 많은 문제가 있습니다... 아직 열혈 개발 중 인걸요... =)
Contributing
---------------------------------------------
어떤 종류의 지원도 언제나 환영입니다 =)
Any kinds of helps ( bug report / push request / suggestionss ) are welcomed =)
## License
Copyright 2012 huewu.yang
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 at
http://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.
[3]: http://cloud.github.com/downloads/huewu/PinterestLikeAdapterView/screenshot.png
没有合适的资源?快使用搜索试试~ 我知道了~
DuiTang_waterfall_support_RefereshAndLoad:DuiTang_waterfall_支持刷新...
共60个文件
java:24个
xml:16个
png:10个
需积分: 5 0 下载量 195 浏览量
2021-06-20
23:51:22
上传
评论
收藏 1.31MB ZIP 举报
温馨提示
PLA(PinterestLikeAdapterView) 开源项目,以便在 android 上实现类似列表视图的 pinterest。 (您可以在链接下方查看 pinterest 应用程序的样子。) 该项目基于 sony 开发者的博客文章“制作您自己的 3d 列表”。 但是,目前它是基于 android 框架 2.3 的列表视图源实现的。 您可以在内部包中检查修改后的列表视图源。 不支持的功能 来自 XML 布局的条目。 选择模式和项目选择。 筛选 处理按键事件和箭头滚动.. 去做: 下拉刷新后保持当前位置 多选模式 图片的宽度判断 截屏 新截图 这是示例活动的屏幕截图。 如何使用 运行示例应用程序。 克隆项目。 在你的安卓手机上运行。 在选项菜单中,您可以添加项目或午餐拉刷新样品。 像多列视图一样使用 Pinterest。 将此项目检查为库项目。 MultiCo
资源详情
资源评论
资源推荐
收起资源包目录
DuiTang_waterfall_support_RefereshAndLoad-master.zip (60个子文件)
DuiTang_waterfall_support_RefereshAndLoad-master
.gitignore 89B
.project 816B
local.properties 430B
README.md 7KB
03.png 191KB
.settings
org.eclipse.core.resources.prefs 55B
org.eclipse.jdt.core.prefs 173B
lint.xml 53B
AndroidManifest.xml 1KB
proguard-project.txt 781B
screenshot.png 82KB
01.png 382KB
libs
android-support-v4.jar 384KB
src
com
example
gettingdata
GettingAndParsingTask.java 3KB
android
bitmapfun
util
ImageFetcher.java 6KB
ImageWorker.java 12KB
Utils.java 4KB
ImageCache.java 8KB
RetainFragment.java 3KB
DiskLruCache.java 10KB
ImageResizer.java 7KB
dodola
model
Infos.java 562B
DuitangInfo.java 515B
dodowaterfall
widget
FlowTag.java 872B
ScaleImageView.java 5KB
FlowView.java 2KB
Constants.java 385B
Helper.java 2KB
huewu
pla
sample
PullToRefreshSampleActivity.java 9KB
lib
MultiColumnListView.java 14KB
internal
PLA_ListView.java 75KB
PLA_AdapterView.java 31KB
PLA_AbsListView.java 110KB
PLA_HeaderViewListAdapter.java 9KB
me
maxwin
view
XListView.java 11KB
XListViewFooter.java 3KB
XListViewHeader.java 4KB
project.properties 585B
res
values
styles.xml 85B
strings.xml 821B
pla__attrs.xml 38KB
ptr_default_style.xml 2KB
ids.xml 128B
layout
ptr_header.xml 711B
xlistview_footer.xml 991B
act_pull_to_refresh_sample.xml 431B
xlistview_header.xml 2KB
infos_list.xml 999B
item_sample.xml 845B
act_sample.xml 550B
drawable-hdpi
xlistview_arrow.png 1KB
ic_launcher.png 1KB
empty_photo.png 3KB
news_item_bg.9.png 599B
values-v11
styles.xml 90B
drawable-mdpi
ic_launcher.png 987B
drawable-xhdpi
ic_launcher.png 2KB
values-v14
styles.xml 104B
.classpath 524B
02.png 230KB
共 60 条
- 1
温暖如故
- 粉丝: 22
- 资源: 4642
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0