1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question change button color?

Discussion in 'Android Questions' started by Randy B. Calahi, Jun 27, 2019.

  1. Randy B. Calahi

    Randy B. Calahi Member Licensed User

    how to change button color?
     
  2. JohnC

    JohnC Well-Known Member Licensed User

    If you change the color of just the button, it may look great on your device, but it may clash (conflict) with the color theme on other devices.

    The best way to handle this situation is to create a theme for your entire app, so that everything will look the same on any device:

    https://www.b4x.com/android/forum/threads/theme-colors.87716/
     
    Randy B. Calahi likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    The simplest way to change the colors is with the designer.
     
  4. inakigarm

    inakigarm Well-Known Member Licensed User

    Code:
    Dim BtnStartGame as B4XVIEW
    BtnStartGame.Color=
    Colors.LightGray
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice