Created
September 19, 2010 12:01
-
-
Save lethargicpanda/586709 to your computer and use it in GitHub Desktop.
This file contains 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> | |
<array name="Tip1"> | |
<item>tip1_title</item> | |
<item>icon</item> | |
<item>tip1_text</item> | |
<item>tip1_checkbox</item> | |
</array> | |
<array name="my_Second_Tip"> | |
<item>my_Second_Tip_title</item> | |
<item>icon</item> | |
<item>my_Second_Tip_text</item> | |
<item>my_Second_Tip_checkbox</item> | |
</array> | |
<array name="TipNo3"> | |
<item></item> | |
<item>icon</item> | |
<item>TipNo3_text</item> | |
<item>TipNo3_checkbox</item> | |
</array> | |
</resources> |
This file contains 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
/* .... */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
// MRTIPS "Incantation" Section ---------------------------- | |
//create a string array with the tips' ids from values/mrtips_arrays.xml | |
String[] idArray = {"Tip1","my_Second_Tip","TipNo3"}; | |
// initialize TipsDisplayer with idArrays and display the tips | |
TipsDisplayer mTD = TipsDisplayer.getInstanceOf(this); | |
mTD.setIdArrays(idArray); | |
mTD.showTipsDialog(this); | |
// END ------------------------------------------------------- | |
} | |
/* .... */ |
This file contains 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> | |
... | |
<string name="tip1_title">Le saviez vous ?</string> | |
<string name="tip1_text">Si vous voulez faire ça, hé bien vous le pouvez !</string> | |
<string name="tip1_checkbox">Vous le saviez?</string> | |
<string name="my_Second_Tip_title">Savez vous comment ?</string> | |
<string name="my_Second_Tip_text">Faites le juste comme ça.</string> | |
<string name="my_Second_Tip_checkbox">Ok, j\'ai compris !</string> | |
<string name="TipNo3_text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</string> | |
<string name="TipNo3_checkbox">Pas la peine de me le dire...</string> | |
... | |
</resources> |
This file contains 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> | |
... | |
<string name="tip1_title">Did you know it ?</string> | |
<string name="tip1_text">If you want to do that, well it\'s easy !</string> | |
<string name="tip1_checkbox">Did you know it ?</string> | |
<string name="my_Second_Tip_title">Did you know how ?</string> | |
<string name="my_Second_Tip_text">Just do it this way</string> | |
<string name="my_Second_Tip_checkbox">Ok, I get it !</string> | |
<string name="TipNo3_text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</string> | |
<string name="TipNo3_checkbox">Don\'t mention it...</string> | |
... | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment