title: Custom view constructor does not get called on android 5.0.2
body: <p>I created a custom view:</p>
  
  <pre><code>public class SomeView extends View
  </code></pre>
  
  <p>The custom view constructors:</p>
  
  <pre><code>public SomeView (Context context)
  {
      super(context);
  }
  // Called when view is inflated from xml
  public SomeView (Context context, AttributeSet attrs)
  {
      super(context, attrs);
  }
  // Perform inflation from XML and apply a class-specific base style from a theme attribute.
  public SomeView (Context context, AttributeSet attrs, int defStyle)
  {
      super(context, attrs, defStyle);
  }
  </code></pre>
  
  <p>I also tried the 4th constructor from api 21 with no luck:</p>
  
  <pre><code>public VeediView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
  {
      super(context, attrs,defStyleAttr, defStyleRes);
  }
  </code></pre>
  
  <p>In the xml layout i am defining this view and things work fine.</p>
  
  <p>Testing on Galaxy S2 works fine and the view constructor are called but when running the app on Nexus-7 android 5.0.2 the constructors do not get called at all.</p>
  
  <p>Any idea why?</p>
  
  <p>Could it be related to rooted devices?</p>
  
  <p>The related xml view:</p>
  
  <pre><code>&lt;com.package.name
  
          android:id="@+id/scene"
          android:onClick="startx"
          style="@style/txt_money_style"
          android:layout_width="72dp"
          android:layout_height="72dp"
          android:background="@drawable/wtbtn"
          android:layout_gravity="right"
          android:gravity="center_vertical|right"
          /&gt;
  </code></pre>