我有像LinerLayout + button + TextWiew:
这样的ImageButtonText<LinearLayout
android:id="@+id/transactions"
style="@style/CardItemButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/qrCode"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/transactions"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_done_all_black_24dp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_weight="1"
android:text="@string/card.item.operations_button_title"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageView4"
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>
我有这样的风格并将此阶梯设置为LinearLayout:
<style name="CardItemButton" parent="Widget.AppCompat.Button.Colored">
<item name="colorButtonNormal">@color/qr_code_button</item>
</style>
现在我的LinearLayout颜色为主色,我无法覆盖它/我该怎么做?