Android string resource file insert value example details
•
Android
Android string resource file insert value example details
When we reference a string resource file, we sometimes encounter the problem of inserting a value in the middle of a string,
For example, the login name is XXX, where XXX is changed. At this time, we may think of splicing. In fact, formatting can also be used. such as
If used in Code:
When multiple parameters
Words used in the code:
Thank you for reading, hope to help you, thank you for your support to this site!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码