I have this button that has a 9patch background with transparent parts, but the whole button has this darken effect like this:
And here is the button xml code:
<Button
android:id="@+id/login_operator"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="5dp"
android:background="@drawable/white_rounded"
android:drawableRight="@mipmap/arrow_white_down"
android:gravity="left|center_vertical"
android:text="@string/select_operator"
android:textAppearance="?android:attr/textAppearanceMedium" />
Here is how this button has to look:
And here is the 9 patch background image:
This darken effect only happens on Lollipop Android version.. so does anyone knows where does this darken effect come from?