title: How to write Ternary operation condition in android XML while data binding
body: <p>How to write the equivalent expression of Ternary operation in android xml while using data binding.</p>
  
  <pre><code>android:visibility="@{(assessmentquestionanswer.type.equals(@string/editText_type)?  View.VISIBLE : View.GONE) || (assessmentquestionanswer.type.equals(@string/date)?  View.VISIBLE : View.GONE)}"
  </code></pre>
  
  <p>Currently I am getting an error message as 
  <strong>must be able to find a common parent for boolean and int</strong></p>