This is my code. I have never seen any changes in my application. I have created this in resources/drawable. How should I apply themes in a style dynamically for all components by changing text color, fonts, shapes etc.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval" android:padding="20dp">
<solid android:color="#FFA500"/>
<corners android:bottomRightRadius="50dp" android:bottomLeftRadius="50dp"
android:topLeftRadius="50dp" android:topRightRadius="50dp"/>
<stroke android:color="#FFA500" android:dashWidth="50dp" />
</shape>
Your code above works absolutely fine. Maybe the problem is with the way you declared the background: are you doing it in XML file or dynamically by Java code?