Giter Club home page Giter Club logo

ma-components's Introduction

Carousel from this library is deprecated. Use one from link below. I will try to move there all features. https://github.com/applm/CarouselWidget

MComponents

Android library with some Widgets and handy pieces of code I have developed.

Library contains:

  • Horizontal list.
  • Horizontal list with support for item removal.
  • Horizontal list with endless repeating of items.
  • CoverFlow widget derived from endless horizontal list.
  • ContentBand widget which allows for specify finer positioning of views inside scroll-able band using coordinates

CoverFlow widget

ma-components's People

Contributors

applm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ma-components's Issues

Horizontal Carousel

Hi, i've looked everywhere and tried everything I could for a good performance carousel in Android and I couldn't find one. I finally found your one. It looks really nice. However I want it vertical. Could you suggest where to start from to convert your implementation into vertical? Do you think that it would be easier to do it from scratch?

Image view changed to network image view

Hi,

we've changed movie cover image from Image View component to Network Image View, but we're facing a problem when sliding the coverflow: the problem comes when you move the coverflow fast, cover images disapear and never comes back. This situation happens for all images but one.

Do you have a clue on why are the images being removed? is there a caching system to register images loaded with Network Image View? or has anyone faced this before?

Horizontal and Vertical Coverflow (3D)

I have implemented the library in my project and now I want to make it, so that the left and right edge is positioned higher then the center (give the coverflow more perspective). I have studied the library, but I can't figure out how to add this functionality. Idea's would be appreciated.

Example of how I want it:
example

OutOfMemory Exception

Hey, I am using your library freshly and came across a little problem.

With 5 simple drawable images (roughly 120 kb each) I get an OutOfMemory Exception after scrolling around a bit.

Is there any solution to this I am missing? Or could this be an issue in your "refill"-mechanism?

I would be glad about any help. Thanks in advance.

java.lang.OutOfMemoryError: Failed to allocate a 5526732 byte allocation with 1447312 free bytes and 1413KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2765)
at android.content.res.Resources.loadDrawable(Resources.java:2670)
at android.content.res.Resources.getDrawable(Resources.java:843)
at android.content.res.Resources.getDrawable(Resources.java:818)
at android.content.Context.getDrawable(Context.java:458)
at android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)
at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321)
at android.support.v7.widget.TintManager.getDrawable(TintManager.java:175)
at android.support.v7.widget.TintManager.getDrawable(TintManager.java:168)
at android.support.v7.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:51)
at android.support.v7.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:72)
at coffeeui.poi.jku.at.coffeeui.adapters.CoverFlowAdapter.getView(CoverFlowAdapter.java:67)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.getViewAtPosition(FeatureCoverFlow.java:634)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.refillLeft(FeatureCoverFlow.java:665)
at it.moondroid.coverflow.components.ui.containers.EndlessLoopAdapterContainer.computeScroll(EndlessLoopAdapterContainer.java:404)
at it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow.computeScroll(FeatureCoverFlow.java:1033)

setShouldRepeat

Great library!

Everything is working great except when I try and disable the endless looping using mCoverFlow.setShouldRepeat(false); I can no longer scroll and get a exception crash pretty quick from what looks to be touch events.

Any tips to get the carousel running without endless items?

scrollToPosition method have bug

when i call scrollToPostion method change the center view automatic, the last item show twice.
can you modify the scrollToPosition method,make the view change smooth? I find some bugs,i hope you can fix it. THKS

Layout issues and not scrollable

While trying to implement the FeatureCoverFlow I discovered that the covers are not laid out correctly and are not scrollable when the adapter does not provide enough items.

Example 1:
14 images
Width: match_parent (=screen width)
Everything works as expected.
screenshot_2014-09-20-13-15-37

Example 2:
9 images
Width: 200dp
Everything works as expected.
screenshot_2014-09-20-13-27-32

Example 3:
9 images
Width: match_parent (=screen width)
Everything works as expected on smaller screens (Samsung Galaxy S2, Samsung Galaxy Mini) but on a big screen (Nexus 5) the layout is not centered and the cover flow is not scrollable. (but OnClick events on the images work)
screenshot_2014-09-20-13-16-11

Blur Item

Is It Possible to make Blur Left and right visible item?

Please provide some instructions on how to integrate with android application

Hello,
Can you please provide some instructions on the readme on how to integrate this with android application, the screenshot looks like the exact coverflow i wish to implement. Can you please provide info on how to implement a simple horizontal list coverflow. Where do i start? .Can you please email me a demo application where this coverflow is implemented at [email protected] .None of the other coverflow library looks as good as this one.

Thanks,
: D

CoverFlow Example

Hi applm, Your implementation of CoverFlow looks great and I would love to use it in my app, but like others just cannot figure out how to use it... Please can you post some example activity and adapter code to help us out?

Please add the how to integrate steps

Hi,
I am trying to use your coverflow control in one of my project, but cant figure out where to stop. It would be great if you could add a readme file with instructions on what are all the controls your package has and how to use them.

Thanks

ContentBand with CoverFlow like functionality

I am looking for a component like ContentBand with CoveFlow like functionality.
I experimented with ContentBand but I am seeing several issues like flickering on scroll, some views not getting drawn on scroll (if they have overlapped X position not y), views cannot be scrolled within. I am bit stuck at this moment. Martin, could you please suggest me what might be causing this control behavior?

Apply click listener on each view

Hi .. I have an issue regarding the library. I have a favorite icon on each frame as an Image view and I want to make it favorite or remove favorite by click on it. I am unable to apply the click listener on that particular view. How can I achieve that ? Please help..
device-2014-12-09-181941

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.