title: change icon when textview is clicked in widget
body: <p>I have create a widget in android , whenever i click on <code>Widget TextView</code> one service get starts but at the same time i want to change the icon which is shown on the right side.</p>
  
  <p>I can set a onclick over <code>Widget TextView</code> using  </p>
  
  <pre><code>remoteViews.setOnClickPendingIntent(R.id.widgetTxt,pendingIntent);
  </code></pre>
  
  <p>but i don't know where i can change the icon when the TextView get clicks </p>
  
  <p>image
  <img src="https://i.stack.imgur.com/jFnny.png" alt="enter image description here"></p>
  
  <pre><code>@Override
          public void onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) {
  
                          // Here i am trying to set a onclick over TextView
      Intent intent = new Intent(context,MyService.class);
              PendingIntent pendingIntent = PendingIntent.getService(context,0 , 
                      intent, 0);
  
              remoteViews.setOnClickPendingIntent(R.id.MyWidgetTxt,pendingIntent);
  
      }
  </code></pre>
  
  <p>When an icon itself gets clicked , it changes too and i have set its code in onReceive</p>