Android Open Source - SSPIA Main Grid Adapter Class

From Project

Back to project page SSPIA.


The source code is released under:

MIT License

If you think the Android project SSPIA 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.fiec.sspia.util;
/*ww w  .  java2s .co  m*/
import com.fiec.ssapp.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

public class MainGridAdapterClass extends BaseAdapter{
  private String[] satellites;
  private int[] images;
  private LayoutInflater inflater;
  public MainGridAdapterClass(FragmentActivity context, String[]sname, int[] simage){
    this.satellites = sname;
    this.images = simage;
    this.inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  public int getCount() {
    return satellites.length;

  public Object getItem(int pos) {    
    return null;

  public long getItemId(int pos) {
    return 0;

  public View getView(int pos, View inflate, ViewGroup parent) {
    View vinflate = inflate;
    TextView satname;
    ImageView img;
    vinflate = inflater.inflate(R.layout.satellite_item, null);
    satname = (TextView) vinflate.findViewById(;
    img = (ImageView) vinflate.findViewById(;
    return vinflate;

Java Source Code List