Hi Ramesh,
I assume you want to colorize the text of the textkey47 different than at the other key buttons.
The color of the text is assigned within ExtendedVirtualKeyboard::Button.UpdateViewState():
textView.Color = Appearance.TextColor;
This does overwrite the assignment you make at loadLayoutFromString().
What you could do, is that you add an additional bool property at the ExtendedVirtual::Button e.g. call it SpecialColor. Set it inside the inspector on textkey47 to true. As a default it should be false. Than call inside OnSetSpecialColor InvalidateViewState() to request an UpdateViewState() call. Inside UpdateViewState() you can now check on this property to set for example the text color of textkey47 to red:
if ( textView != null )
{
textView.String = String;
textView.Font = Appearance.Font;
textView.Color = Appearance.TextColor;
if ( SpecialColor )
textView.Color = #FF0000FF; // Set the text color to red
}
Regards,
Julian