getCompoundDrawables returns null inside of onCreateView, but not later
<p>I want to run the code below in order to tint a button's drawable on pre-lollipop devices, however button.getCompoundDrawables() is returning null for all 4 elements of the array when called inside of the Fragment's onCreateView method.</p>

<p>If I inspect the same Drawable[] array at a later point in time - say upon a button click event -  I can see the drawable value has been correctly assigned (3 are null, 1 is valid).</p>

<p>Is there some button life cycle or fragment life cycle that I can rely on the compound drawables array to have been already properly initialized?</p>

<pre><code>Drawable[] drawables = button.getCompoundDrawables();
        if( drawables[2] != null){
            Drawable wrapDrawable = DrawableCompat.wrap(drawables[2]);
            DrawableCompat.setTint(wrapDrawable, color);
            button.invalidate();
        }
</code></pre>

<p>Here's the lib versions I'm using:</p>

<pre><code>compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:support-v4:24.1.1'
compile 'com.android.support:design:24.2.0'
</code></pre>

<p>At request, I'm including also some xml code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout        xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
 [...]  &gt;

&lt;Button
    android:id="@+id/bt1"
    android:background="@android:color/transparent"
    android:textAppearance="@style/ConfigButtonTheme"
    android:text="Sincronizar Música"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:drawableEnd="@drawable/ic_chevron_right_white_24dp"
    android:textAlignment="textStart"
    android:layout_width="match_parent"
    android:layout_height="60dp" /&gt;

&lt;/LinearLayout&gt;
</code></pre>