0

button color takes a title color

Troubles with button colors, it always take a title color and idk why, I don't even know how to change a color of title


        <Button android:background="@color/white"
                android:id="@+id/showGraphButton"
                android:foreground="@drawable/changing_show_graph_button_color"
                android:foregroundGravity="right"
                android:clickable="true"
                android:enabled="false"
                android:gravity="left"
                android:text="Рассчитать корректуру "
                android:textColor="@color/darkgrey_spbsut"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:backgroundTint="@color/white">

        </Button>
    </LinearLayout>

</LinearLayout>
Halil Ozel
  • 2,482
  • 3
  • 17
  • 32

1 Answers1

0

Try to delete android:background="@color/white". That thing reset your color of the background to the default value and if you didn't set the value of the color in the resources of the color (in the folder resources -> values-> colors.xml) it will not work