Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Owner and Founder. Opencart
Top Partners
In this blog,
we will get interact with the string placeholder. And see, is it possible to Concatenate multiple strings in XML? OR How to reference one string from another string in strings.xml?
If we want to Concatenate multiple strings in XML? or reference one string from another string in strings.xml? so what we can’t do with the strings,
Because here it will search for a String with reference @string/music Pop which does not exist.
So what we can do to want string placeholders which can be change dynamically.
“Formatting strings”, If you need to format your strings using String.format(String, Object…), then you can do so by putting your format arguments in the string resource. For example, with the following resource:
In this example, the format string has two arguments: %1$s is a string and %2$d is a decimal number. You can format the string with arguments from your application like this:
%1$s
%2$d
So what can we do with music string,
in java file,
Example:
output: Rock Music
output: Pop Music
Refrence:
https://developer.android.com
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Michael Urresta
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.