title: Condition with xml property in java android
body: <p>I have one question is it possible to check the condition with xml tribute or property.
  Example
  I have 2 picture: pict1, pict2
  I want to check if pict1 have Alpha=0.5 then pict2 Alpha=1 else reverse it</p>
  
  <p>Can any one tell me the solution.</p>
  
  <p>note: the picture Alpha can be set by xml or set by java. </p>