简体   繁体   中英

How to override the text in Twitter Digits android?

In twitter digits https://github.com/twitter/digits-android while verifying phone number there's an activity for Entering the confirmation code in which there's an EditText and a Button for "SIGN IN".

My question is how to change the text of the button from "Sign in" ?

Because Twitter Digits allows only changing the theme. And all of these tasks are being done by Twitter-digits sdk.

在此输入图像描述

您必须覆盖Digits中的字符串,例如在Auth按钮中,您必须在res / values / strings.xml上具有此字符串:

<string name="dgts__login_digits_text">Validate</string>

As of now, Twitter Fabric Digits has not officially provided support to amend this. You should not change anything that is not documented by the Digits team as then you will always run in the risk of having an obsolete code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM