Skip to content

This Activity already has an action bar supplied by the window decor. #48

Open
@kierepka

Description

@kierepka

Error: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.

Code:

[Activity(Icon = "@drawable/icon", 
        ConfigurationChanges = AppConfig,
        Theme = CompatTheme)]
    public class MainActivity : AppCompatFormsApplicationActivity
    {
        const ConfigChanges AppConfig = ConfigChanges.Orientation | ConfigChanges.ScreenSize;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions