How to change the track color of a SwitchCompat

I had same probrem and solved it. <style name=”AppTheme” parent=”Theme.AppCompat.Light.NoActionBar”> … <!– Active thumb color & Active track color(30% transparency) –> <item name=”colorControlActivated”>@color/theme</item> <!– Inactive thumb color –> <item name=”colorSwitchThumbNormal”>@color/grey300</item> <!– Inactive track color(30% transparency) –> <item name=”android:colorForeground”>@color/grey600</item> … </style> I read app compat code, and understand it. android.support.v7.internal.widget.TintManager.java private ColorStateList getSwitchTrackColorStateList() { if (mSwitchTrackStateList … Read more

How to change the color of a SwitchCompat from AppCompat library [duplicate]

AppCompat tinting attributs: First, you should take a look to appCompat lib article there and to different attributs you can set: colorPrimary: The primary branding color for the app. By default, this is the color applied to the action bar background. colorPrimaryDark: Dark variant of the primary branding color. By default, this is the color … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)