title: Android: Databinding expression with enum comparison
body: <p>is it possible to create a databinding expression and control the visibility of a view element by using enumerations? What I want to achieve is the following</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:visibility="@{user.editType == EditType.EDIT_PROFIL ? View.VISIBLE : View.GONE}"&gt;
  </code></pre>
  
  <p>The EditType class is very simple</p>
  
  <pre><code>public enum EditType {
    NONE,
    EDIT_PROFIL,
    EDIT_ADDRESSES; }
  </code></pre>
  
  <p>It would be awesome if I can use this enumeration within the XML to control the visibility of my <code>LinearLayout</code>.</p>
  
  <p>Anybody got an idea how to achieve this?</p>