title: Does View gets redrawn when property programatically changed to same value?
body: <p>Let's have some View in fragment (e.g. LinearLayout or ImageView). If I change property of this View programatically (e.g. change backgroundColor) to same property that is already set, is view redrawn/rerendered?</p>
  <p>Example of double set:</p>
  <pre class="lang-kotlin prettyprint-override"><code>binding.someLinearLayout.setBackgroundColor(redColor)
  binding.someLinearLayout.setBackgroundColor(grayColor);
  binding.someLinearLayout.setBackgroundColor(grayColor);
  binding.someLinearLayout.setBackgroundColor(grayColor);
  </code></pre>
  <p>LinearLayout will be redrawn twice or 4 times? If 4 times, should I implement something like this to prevent it?</p>
  <pre class="lang-kotlin prettyprint-override"><code>fun setBackgroundColor(ll: LinearLayout, color: Int){
     val current = binding.progressBarChunk4.background as ColorDrawable
     if(current.getColor() != color)
        ll.setBackgroundColor(color)
  }
  
  setBackgroundColor(binding.someLinearLayout, redColor); // Color set
  setBackgroundColor(binding.someLinearLayout, grayColor); // Color set
  setBackgroundColor(binding.someLinearLayout, grayColor); // ignored
  setBackgroundColor(binding.someLinearLayout, grayColor); // ignored
  </code></pre>
  <p>So basically I am asking if multiple set of same property affects performance, because view gets redrawn everytime.</p>