Created
December 30, 2015 06:17
-
-
Save notdrone-1/a4e05af35e24bdbcbb60 to your computer and use it in GitHub Desktop.
Plurals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<plurals name="see_new_update"> | |
<item quantity="one">1 new update</item> | |
<item quantity="other">%d new updates</item> | |
</plurals> | |
</resources> | |
String quantityString = context.getResources().getQuantityString(R.plurals.see_new_update, | |
StringUtil.str2Int(feed.getContent()),StringUtil.str2Int(feed.getContent())); | |
holder.newUpdateTextView.setText(quantityString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment