@Override
    public View getView(int position, View convertView, ViewGroup parent) {
        Log.i(TAG, "getView for position: " + position + " with selectedItem: " + selectedPosition);

        View v = convertView;
        ViewHolder holder;
        if (v == null) {
            LayoutInflater vi =
                    (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            v = vi.inflate(R.layout.test_chooser_row, null);
            holder = new ViewHolder();
            holder.textView = (TextView) v.findViewById(R.id.txtClassName);
            holder.layoutRow = (LinearLayout) v.findViewById(R.id.layoutTestChooserRow);
            v.setTag(holder);
        } else {
            holder=(ViewHolder)v.getTag();
        }

        final String itemText = filteredEntries.get(position);
        if (itemText != null) {
            holder.textView.setText(itemText);
            if (position == selectedPosition) {
                Log.i(TAG, "setting Background Color to: " + selectedBackgroundColor);
//                holder.textView.setBackgroundColor(selectedBackgroundColor);
//                holder.textView.setBackgroundResource(selectedBackgroundResource);
                holder.layoutRow.setBackgroundResource(selectedBackgroundResource);
            } else {
                Log.i(TAG, "setting Background Color to: " + nonselectedBackgroundColor);
//                holder.textView.setBackgroundColor(nonselectedBackgroundColor);
//                holder.textView.setBackgroundResource(nonselectedBackgroundResource);
                holder.layoutRow.setBackgroundResource(nonselectedBackgroundResource);
            }
        }
        return v;

    }
Setter for non-selected background resource id
jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/CustomArrayAdapter.java