title: How to get TextView of an activity in an Adapter class while that TextView is not in row of recyclerView?
body: <p>How to get TextView of an Activity  in  RecyclerViewAdapter class and <strong>TextView is not in layout</strong> of row For  RecyclerView  item.As in RecyclerViewAdapter we override method </p>
  
  <pre><code>onBindViewHolder(ViewHolder holder, int position){
     NewsModel newsModel=values.get(position);  //to get the current object
          holder.news_title.setText(newsModel.getTitle());
          holder.news_body.setText(newsModel.getDescription());
          holder.news_published_at.setText("Date "+GiveMeDate(values.get(position).getDate()));}  
  </code></pre>
  
  <p>and as it get only those which are declared in <code>ViewHolder extends RecyclerView.ViewHolder</code>   and ViewHolder  will only get ui that are in <code>View v = inflater.inflate(R.layout.news_item, parent, false);</code>but I want to get ui from activity's layout so that I can update TextView value in Adapter <strong>So please Help to do that work.</strong> Image to reflect Layout is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/BqRHU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BqRHU.png" alt="enter image description here"></a></p>