GithubHelp home page GithubHelp logo

ozzie00 / pinterestlikeadapterview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gdg-korea/pinterestlikeadapterview

0.0 2.0 0.0 1.55 MB

An Android multi column list view like Pinterest.

Java 100.00%

pinterestlikeadapterview's Introduction

PLA(PinterestLikeAdapterView)

Branch Master: Build Status

Open source project in order to implement pinterest like list view on android. (You can check how pinterest app looks like form)

This project is statred based on Anders Ericson's blog post 'making your own 3d list'.

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..

Screen Shot

This is a screen shot of sample activity.

Example Image

How to use

To run Sample App.

  1. clone project.

  2. run on your android phone.

To use Pinterest Like Multi Column View.

  1. check this project as library project.

  2. MultiColumListView is the view 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 );

Contributing

Any kinds of helps (bug report / pull request / suggestions) are welcomed =)

If you are submitting a patch, please add your name to AUTHORS.md.

License

Copyright 2012 PinterestLikeAdapterView authors. All rights reserved.

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.

pinterestlikeadapterview's People

Contributors

dalinaum avatar destinyd avatar donxu avatar huewu avatar juyeong avatar kai4th avatar mzule avatar stategrace avatar thefinestartist avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.