Android Open Source - android Parallax Expandable List View

From Project

Back to project page android.


The source code is released under:

Apache License

If you think the Android project android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.nirhart.parallaxscroll.views;
// w  w  w  .ja v a2  s .  c o  m
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ExpandableListView;

public class ParallaxExpandableListView extends ExpandableListView {

  private ParallaxListViewHelper helper;

  public ParallaxExpandableListView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    init(context, attrs);

  public ParallaxExpandableListView(Context context, AttributeSet attrs) {
    super(context, attrs);
    init(context, attrs);

  protected void init(Context context, AttributeSet attrs) {
    helper = new ParallaxListViewHelper(context, attrs, this);

  public void setOnScrollListener(OnScrollListener l) {
  public void addParallaxedHeaderView(View v) {

  public void addParallaxedHeaderView(View v, Object data, boolean isSelectable) {
    super.addHeaderView(v, data, isSelectable);
    helper.addParallaxedHeaderView(v, data, isSelectable);

Java Source Code List