Guten Tag,

ich erstelle gerade eine Benutzeroberfläche für eine Login Activity in Android Studio. Dort habe ich einen Login Button, welchen ich abrunden und seine Hintergrundfarbe ändern möchte. Ich habe es wie folgt probiert:

<Button
    android:id="@+id/buttonLogin"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="40dp"
    android:background="@drawable/rounded_button"
    android:padding="10dp"
    android:text="Login"
    android:textColor="#D3D3D3"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editTextPassword" />

und die rounded_button.xml:

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

habe auch versucht die Hintergrundfarbe mit android:backgroundTint zu ändern was auch nicht funktioniert hat.

Ich möchte also, dass der Button abgerunded ist und ich trotzdem noch seine Hintergrundfarbe ändern kann.