Skip to content

Instantly share code, notes, and snippets.

View vartult's full-sized avatar
🕰️
Watching Gradle Builds

Vartul Tripathi vartult

🕰️
Watching Gradle Builds
View GitHub Profile
@vartult
vartult / README.md
Created May 23, 2024 07:29 — 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

@vartult
vartult / shadow.xml
Created April 18, 2022 10:48 — forked from lecho/shadow.xml
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"