For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
#!/bin/bash | |
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$CHANGELOG_BRANCH" ]; then | |
echo "This commit was made against the $TRAVIS_BRANCH and not $CHANGELOG_BRANCH! Changelog not updated!" | |
exit 0 | |
fi | |
gem install rack -v 1.6.4 | |
gem install github_changelog_generator |
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
public class GlueItemsAdapter extends RecyclerArrayAdapter<GlueItem, GlueItemsAdapter.Holder> { | |
public GlueItemsAdapter(LayoutInflater inflater) { | |
super(inflater); | |
} | |
@Override | |
protected Holder onCreateViewHolder(LayoutInflater inflater, ViewGroup parent, int viewType) { | |
return new Holder(inflater.inflate(android.R.layout.simple_list_item_1, parent, false)); |
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
// You can use maven-publish-helper.gradle script without changes and even share it between multiple | |
// modules. Just place the maven-publish-helper.gradle file in the root directory of your project, | |
// then apply it at the bottom of your module's build.gradle file like this: | |
// ...content of module's build.gradle file... | |
apply from: '../maven-publish-helper.gradle' | |
publishing { | |
publications { |
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
//A Kotlin object (singleton) that handles the copying with mulitple different arguments | |
object CopyBytes { | |
@Throws(IOException::class) | |
fun copy(input: InputStream, output: OutputStream) { | |
//Creating byte array | |
val buffer = ByteArray(1024) | |
var length = input.read(buffer) | |
//Transferring data |