How to change the button color

Hello, i am use this code and my button did not to change. How to change the button color?

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#B3C328"/>
    <corners android:radius="950dp"/>
</shape>

I also included this file in the button’s specifications

<Button
        android:id="@+id/loginButton"
        android:layout_width="144dp"
        android:layout_height="52dp"
        android:layout_marginStart="29dp"
        android:layout_marginEnd="14dp"
        android:background="@drawable/round_button"
        android:hapticFeedbackEnabled="false"
        android:text="@string/login_button"
        android:textAlignment="center"
        android:textSize="12sp"
        android:typeface="normal"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/registrationButton"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.499" />

This is the Kotlin forum.

2 Likes