Android Open Source - Vispin Pins Adapter






From Project

Back to project page Vispin.

License

The source code is released under:

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. ...

If you think the Android project Vispin 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.jpardogo.vispin.adapters;
/*from   w w w  .  j  a v a2s .  c  o  m*/
import android.content.Context;
import android.location.Address;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.jpardogo.vispin.R;
import com.jpardogo.vispin.models.ListItem;

import org.w3c.dom.Text;

import butterknife.InjectView;

/**
 * Created by jpardogo on 24/07/2014.
 */
public class PinsAdapter extends BaseAllAdapters<String> {


    public PinsAdapter(Context context, int viewLayoutId) {
        super(context, viewLayoutId);
    }

    @Override
    protected void initDelegates() {

    }

    @Override
    protected void bindView(int position, View convertView, ListItem<String> item, ViewHolder parentHolder) {
        ViewHolderAddresses holder = (ViewHolderAddresses) parentHolder;
        holder.text.setText(getItem(position).getItem());
    }

    @Override
    protected ViewHolder getHolderInstance(View view) {
        return new ViewHolderAddresses(view);
    }

    static class ViewHolderAddresses extends ViewHolder{
        @InjectView(R.id.text)
        TextView text;
        public ViewHolderAddresses(View view) {
            super(view);
        }
    }
}




Java Source Code List

com.jpardogo.vispin.ApplicationTest.java
com.jpardogo.vispin.MainActivity.java
com.jpardogo.vispin.VispinApp.java
com.jpardogo.vispin.adapters.BaseAllAdapters.java
com.jpardogo.vispin.adapters.PinInfoWindowAdapter.java
com.jpardogo.vispin.adapters.PinsAdapter.java
com.jpardogo.vispin.adapters.delegates.BaseDelegateAdapter.java
com.jpardogo.vispin.adapters.delegates.DelegateAdapter.java
com.jpardogo.vispin.models.ListItem.java
com.jpardogo.vispin.models.PinInfo.java
com.jpardogo.vispin.ui.MainActivity.java
com.jpardogo.vispin.ui.PinsMapFragment.java
com.jpardogo.vispin.ui.custom.DrawInsetsFrameLayout.java
com.jpardogo.vispin.ui.dialogs.PinsDialogFragment.java
com.jpardogo.vispin.utils.Utils.java