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
| LayoutInflater inflater = getLayoutInflater(); | |
| View view = inflater.inflate(R.layout.cust_toast_layout, (ViewGroup) findViewById(R.id.relativeLayout1)); | |
| Toast toast = new Toast(this); | |
| toast.setView(view); | |
| toast.show(); |
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
| on run | |
| -- Read the current value of AppleShowAllFiles | |
| set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles" | |
| set plistCommand to "defaults write com.apple.finder AppleShowAllFiles" | |
| if plistValue is "false" then | |
| set shellCommand to plistCommand & " true" | |
| else | |
| set shellCommand to plistCommand & " false" | |
| end if |
NewerOlder