To circumvent the api 21 and above for my background tint, I simply put a View
as the first item in my layout. So pure xml. In this view I will then manipulate the background, not the tint, using a transparent color. E.g
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.HomeFragment"
android:id="@+id/frameLayout"
android:background="@drawable/planeWing">
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/semiTransparentDarkBlue">
</View>
<TextView
android:id="@+id/greeting_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="@string/greeting_hello"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView"
app:layout_constraintVertical_bias="0.0" />
</android.support.constraint.ConstraintLayout>
I'm not certain about the multiply method you have used as well.