Back to project page ListView3d.
The source code is released under:
Apache License
If you think the Android project ListView3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.inovex.mtc; //from w w w. ja v a2 s .com import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class MyAdapter extends BaseAdapter{ private final LayoutInflater mInflater; private final String[] mItems; public MyAdapter(Activity c,String[] objects) { mInflater = c.getLayoutInflater(); mItems = objects; } public int getCount() { return mItems.length; } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = mInflater.inflate(R.layout.listitem, null); } ((TextView)convertView).setText(mItems[position]); return convertView; } @Override public Object getItem(int position) { return mItems[position]; } @Override public long getItemId(int position) { return position; } }