title: Android. How can I change a ListView text color on click?
body: <p>I change the color with this code, but the color changes only when i quit from the application and run it again. How can I resolve to change immediately the color?</p>
  
  <pre><code>adapter2 = new ArrayAdapter&lt;String&gt;(getApplicationContext(),
              android.R.layout.simple_list_item_1, list) {
          @Override
          public View getView(int position, View convertView, ViewGroup parent) {
              View view = super.getView(position, convertView, parent);
              TextView text = (TextView) view
                      .findViewById(android.R.id.text1);
              text.setTextColor(Color.parseColor(color));
              return view;
          }
      };
  </code></pre>