Code example for SimpleCursorAdapter

Methods: getItem

0
    super.setStringConversionColumn(stringConversionColumn);
  } 
 
  @Override 
  public Object getItem(int position) {
    return super.getItem(position);
  } 
 
  /** 
   * @see android.widget.ListAdapter#getView(int, android.view.View, android.view.ViewGroup) 
   */ 
  @Override 
  public View getView(int position, View convertView, ViewGroup parent) {
    View v = super.getView(position, convertView, parent);
    TextView urlTextView = (TextView)v.findViewById(R.id.url);
    if (urlTextView != null) {
      String urlVal = urlTextView.getText().toString();
      if (urlVal == null || urlVal.trim().length() < 1) {
        urlTextView.setVisibility(View.GONE);
      } else { 
        urlTextView.setVisibility(View.VISIBLE);