I have something like this in my library project. I want to use that custom defined theme in my concrete project but Im not able to reference it.How can I achieve this?
<?xml version="1.0" encoding="utf-8"?>
<style name="MenuDialog" parent="android:Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowCloseOnTouchOutside">false</item>
<item name="android:windowAnimationStyle">@null</item>
</style>
What I did for workaround for now is: Im setting the theme not in the manifest file instead of that Im setting it before setContentView method.
@Override
public void onCreate(Bundle savedInstanceState) {
setTheme(package_library.R.style.MenuDialog);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With