Ripple effect position when checkbox button is set to null
<p>Ripple effect problem when checkbox button is set to null:</p>

<p>Style used</p>

<pre><code>&lt;style name="MyRow"&gt;
&lt;item name="android:button"&gt;@null&lt;/item&gt;
&lt;item name="android:drawableRight"&gt;@drawable/abc_btn_radio_material&lt;/item&gt;
&lt;item name="android:drawableEnd"&gt;@drawable/abc_btn_radio_material&lt;/item&gt;
&lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
&lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
&lt;item name="android:padding"&gt;@drawable/dafaultPadding&lt;/item&gt;
</code></pre>

<p></p>

<p>This is the radiogroup containing the radio buttons.</p>

<pre><code>&lt;RadioGroup android:layout_height="wrap_content" android:layout_width="match_parent"&gt;

&lt;android.support.v7.widget.AppCompatRadioButton style="@style/MyRow"
    android:id="@+id/one"
    android:text="@string/someText"
    /&gt;

&lt;android.support.v7.widget.AppCompatRadioButton style="@style/MyRow"
    android:id="@+id/two"
    android:text="@string/someText"
    /&gt;

&lt;android.support.v7.widget.AppCompatRadioButton style="@style/MyRow"
    android:id="@+id/three"
    android:text="@string/someText"
    /&gt;

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

<p>Ripple animation works as expected when the android:button property is set to some drawable.
When null, it has this behaviour on Marshmallow (ripples at the middle of the row).</p>

<p><a href="https://i.stack.imgur.com/y0k5c.png" rel="nofollow noreferrer">Click Here to see the image</a></p>

<p>In lollipop works correctly except for the fact that it has no bounds and the ripple expands to the whole window.</p>

<p>The only way to solve this in my mind is to create custom views for each row containing a textview on the left of a radiobutton.
But in this way I will have to create a monster-like controller (to select checkboxes when I press on the textview) and I will lose all the advantages of the radiogroup.</p>

<p><a href="https://i.stack.imgur.com/y0k5c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y0k5c.png" alt="enter image description here"></a></p>