Sandeep Agrawal
Sandeep Agrawal

Reputation: 576

Text color of textfield in Sencha touch is not reflecting on Android devices

I am using a textfield in sencha touch view and setting the color to white but it is not taking white color and overriding default black color. How can I change the css to reflect it.

xtype : 'textfield',
        name : 'subject',
        id : 'interactionSubjectText',
        clearIcon : true,
        cls : 'ml',
        inputCls : 'textColor',

Upvotes: 4

Views: 869

Answers (2)

Frol
Frol

Reputation: 34

To change the colour on an android device you have to use the -webkit-text-fill-color css parameter.

In your case your css file should contain the following class:

.ml {-webkit-text-fill-color: red;}

There is a link on a sencha touch 2 forum where I took this solution: sencha touch forum

Upvotes: 1

Ramesh Lamani
Ramesh Lamani

Reputation: 1127

Inspect the text field, apply the white color to that class with important property. Sure it will work.

Upvotes: 0

Related Questions