Android Open Source - ParallaxScroll Custom List Adapter






From Project

Back to project page ParallaxScroll.

License

The source code is released under:

MIT License

If you think the Android project ParallaxScroll 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.parallaxscrollexample;
/*from   w w  w.  j a  v  a  2s.com*/
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class CustomListAdapter extends BaseAdapter {

  private LayoutInflater inflater;

  public CustomListAdapter(LayoutInflater inflater) {
    this.inflater = inflater;
  }

  @Override
  public int getCount() {
    return 20;
  }

  @Override
  public Object getItem(int position) {
    return null;
  }

  @Override
  public long getItemId(int position) {
    return 0;
  }

  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    TextView textView = (TextView) convertView;
    if (textView == null)
      textView = (TextView) inflater.inflate(R.layout.item, null);
    textView.setText("Item " + position);
    return textView;
  }
}




Java Source Code List

com.nirhart.parallaxscroll.views.ParallaxExpandableListView.java
com.nirhart.parallaxscroll.views.ParallaxListViewHelper.java
com.nirhart.parallaxscroll.views.ParallaxListView.java
com.nirhart.parallaxscroll.views.ParallaxScrollView.java
com.nirhart.parallaxscroll.views.ParallaxedView.java
com.nirhart.parallaxscrollexample.CustomExpandableListAdapter.java
com.nirhart.parallaxscrollexample.CustomListAdapter.java
com.nirhart.parallaxscrollexample.MainActivity.java
com.nirhart.parallaxscrollexample.MultipleParallaxExpandableListView.java
com.nirhart.parallaxscrollexample.MultipleParallaxListView.java
com.nirhart.parallaxscrollexample.MultipleParallaxScrollView.java
com.nirhart.parallaxscrollexample.SingleParallaxAlphaScrollView.java
com.nirhart.parallaxscrollexample.SingleParallaxExpandableListView.java
com.nirhart.parallaxscrollexample.SingleParallaxListView.java
com.nirhart.parallaxscrollexample.SingleParallaxScrollView.java