Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] ImageButton inside NavigationView.TitleView throw exception during device rotation. #4484

Closed
RadoslawKubas opened this issue Nov 20, 2018 · 0 comments · Fixed by #4507

Comments

@RadoslawKubas
Copy link

commented Nov 20, 2018

Description

ImageButton inside NavigationView.TitleView throw exception during Android device rotation.

Steps to Reproduce

  1. Create basic NavigationPage:

MainPage = new NavigationPage(new MainPage());

  1. Create basic ContentPage with NavigationPage.TitlePage property and ImageButton:
    <NavigationPage.TitleView>
        <ImageButton Source="xamarin.png" HeightRequest="40"/>
    </NavigationPage.TitleView>
    <StackLayout>
    </StackLayout>
  1. Change device orientation.

Expected Behavior

Application adjust to the new orientation.

Actual Behavior

Application throw exception

System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.ImageButtonRenderer from native handle 0xfff980fc (key_handle 0xc65fae8).

Basic Information

  • Version with issue: 3.4.0.1008975
  • Last known good version: -
  • IDE:
  • Platform Target Frameworks:
    • Android: 8.1

Reproduction Link

https://github.com/RadoslawKubas/Xamarin34TitleViewImageProblem

@pauldipietro pauldipietro added this to New in Triage Nov 20, 2018

@samhouts samhouts added the p/Android label Nov 20, 2018

@samhouts samhouts added this to In Progress in v3.6.0 Nov 22, 2018

@rmarinho rmarinho added the t/bug 🐛 label Nov 22, 2018

@rmarinho rmarinho added this to To do in Android Ready For Work via automation Nov 22, 2018

@rmarinho rmarinho removed this from New in Triage Nov 22, 2018

Android Ready For Work automation moved this from To do to Done Nov 22, 2018

@samhouts samhouts moved this from In Progress to Done in v3.6.0 Nov 22, 2018

@samhouts samhouts removed this from Done in v3.6.0 Jan 3, 2019

@samhouts samhouts added this to In Progress in v3.5.0 Jan 11, 2019

@samhouts samhouts moved this from In Progress to Done in v3.5.0 Jan 11, 2019

samhouts added a commit to paymicro/Xamarin.Forms that referenced this issue Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
3 participants
You can’t perform that action at this time.