Android Studio 0.4.5
Android documentation for creating custom dialog boxes: http://developer.android.com/guide/topics/ui/dialogs.html
If you want a custom d
This is what fixed it for me: instead of specifying the theme in manifest, I defined it in onCreate
for each activity that extends ActionBarActivity
:
@Override
protected void onCreate(Bundle savedInstanceState) {
setTheme(R.style.MyAppTheme);
super.onCreate(savedInstanceState);
setContentView(R.layout.my_activity_layout);
...
}
Here MyAppTheme
is a descendant of Theme.AppCompat
, and is defined in xml. Note that the theme must be set before super.onCreate
and setContentView
.