You can create drawable with shape content. And add your styles to it.
Example:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#77ffffff"/> </shape>
Create a file with a name, for example, sampleBackground.xml in a folder with the ability to transfer in the res path. And set the background attribute of your panels to it:
android:background="@drawable/sampleBackground"
source share