Skip to content

Instantly share code, notes, and snippets.

View bluesky15's full-sized avatar
🏠
Working from home

Lalit Behera bluesky15

🏠
Working from home
View GitHub Profile
@bluesky15
bluesky15 / README.md
Created May 27, 2022 05:44 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

# list of basic linux commands:
ls # list files.
@bluesky15
bluesky15 / MainActivity.kt
Created July 7, 2019 08:56
File writing in androd
private fun writeFile(filename: String,fileContents:String) {
this.openFileOutput(filename, Context.MODE_PRIVATE).use {
it.write(fileContents.toByteArray())
Log.d("File", "Success")
}
}