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
// custom dialog | |
final Dialog dialog = new Dialog(context); | |
dialog.setContentView(R.layout.custom); | |
dialog.setTitle("Title..."); | |
// set the custom dialog components - text, image and button | |
TextView text = (TextView) dialog.findViewById(R.id.text); | |
text.setText("Android custom dialog example!"); | |
ImageView image = (ImageView) dialog.findViewById(R.id.image); | |
image.setImageResource(R.drawable.ic_launcher); |
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
1. Implement simple demo | |
- button "left" | |
- button "right" | |
- text view | |
- define cyclic list of 5 text-items | |
- on button press change text-item to next one | |
2. Implement timer | |
- button left | |
- button right | |
- timer text view |
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
cd ${bamboo.build.working.directory} | |
if ls **/test-results/*.xml 1> /dev/null 2>&1; then | |
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "success", "context": "build", "description": "Build Passed", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/<username>/<repo_name>/statuses/${bamboo.repository.revision.number} > /dev/null | |
else | |
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "failure", "context": "build", "description": "Build Failed!", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/<username>/<repo_name>/statuses/${bamboo.repository.revision.number} > /dev/null | |
fi | |
##check for test failures. | |
if (grep 'failure message' **/test-results/*.xml 1> /dev/null 2>&1) then | |
mainJunit=$(find **/test-results/*.xml -print0 | xargs -0 grep 'failure message' | wc -l) | |
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "failure", "context": "tests", " |
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
temp.binary |
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
.babelrc | |
############################################################ | |
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"targets": { | |
"node": "current" | |
} |
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
/** | |
* Set Intl variable for Android OS | |
*/ | |
if (!global.Intl) { | |
require('intl'); | |
require('intl/locale-data/jsonp/en.js'); | |
// Used mostly common locales for date time | |
require('intl/locale-data/jsonp/en-GB.js'); | |
require('intl/locale-data/jsonp/en-US.js'); | |
require('intl/locale-data/jsonp/en-AU.js'); |
OlderNewer