title: how can I color text of listview when i clicked on listview item and i want, when I clicked other items previous item should be the default color
body: <pre><code>public void setDataToList() {
      liveTvAdapter = new LiveTvAdapter(this, channelList);
      horizonatalListViewForLiveTv.setAdapter(liveTvAdapter);
  
      horizonatalListViewForLiveTv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
              TextView textView;
  
              for (int i = 0; i &lt; parent.getChildCount(); i++) {
                  if (position == i) {
                      textView = (TextView) parent.getChildAt(i).findViewById(R.id.live_tv_chanel_text);
                      textView.setTextColor(Color.parseColor("#63a0b9"));
                  } else {
                      textView = (TextView) parent.getChildAt(i).findViewById(R.id.live_tv_chanel_text);
                      textView.setTextColor(Color.BLACK);
                  }
              }
  
              if (videoView != null) {
                  videoView = null;
              }
              setValue(position);
  
  
          }
  
      });
  }
  </code></pre>
  
  <p>this is above code that I am doing. Here i am getting textview from parent child from position. In this code when i clicked a third or fourth item , an item is not colored although other items gets colored. </p>