Creating a semi-transparent background color in an Android app was definitely not straightforward for me when starting out as an Android dev. I figured other aspiring Android devs would have similar confusion so I decided to just document the easiest way to do it here. I hope it helps!
The example below is a black background (hex value of #000000
) that is 50% transparent.
<View android:background="#80000000" />
#kotlin #junior-developer #android #android-app-development