Bug 33271 - Tabbed Pages in android are not working with new Xamarin Forms 1.4.4.6392
Summary: Tabbed Pages in android are not working with new Xamarin Forms 1.4.4.6392
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.4
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-08-20 15:09 UTC by Gaurav Kumar
Modified: 2015-11-12 16:12 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample Application to demonstrate the bug (205.46 KB, application/zip)
2015-08-20 15:21 UTC, Gaurav Kumar
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Gaurav Kumar 2015-08-20 15:09:29 UTC
I hava a Tabbed page Inside a Navigation Page As Detail Of Master Details Page, Clicking on tabs doesn't work, it always shows the last page.

public class TestTabMasterDetailPage : MasterDetailPage
{
public TestTabMasterDetailPage ()
{
Icon = "icon.png";
Master = new Page{ Title = "Login" };

        var tabbedPage = new TabbedPage {
            Children = { new TabbedViews("First Tab") , new TabbedViews("Second Tab"), new TabbedViews("Third Tab")
            }
        };

        Detail = new TestTabNavigationPage(tabbedPage);
    }
}
public class TestTabNavigationPage : NavigationPage
{
public TestTabNavigationPage (Page root):base(root)
{
Icon = "icon.png";
}
}

public class TabbedViews : ContentPage
{
public TabbedViews (string name)
{
Title = name;
Label label = new Label () {
HorizontalOptions = LayoutOptions.End,
XAlign = TextAlignment.Center,
YAlign = TextAlignment.Center,
BackgroundColor = Color.White,
Text = "powered by " + name,
};

        var InsideStack = new StackLayout {
            Orientation = StackOrientation.Vertical,
            VerticalOptions = LayoutOptions.FillAndExpand,
            Children = { label }
        }; 

        Content = InsideStack;
    }


}
I am attaching the solution..
Comment 1 Gaurav Kumar 2015-08-20 15:21:09 UTC
Created attachment 12591 [details]
Sample Application to demonstrate the bug

Sample Application to demonstrate the bug
Comment 2 Parmendra Kumar 2015-08-21 06:59:54 UTC
I have tried to reproduce this issue with attached sample project and able to reproduce it.
I am getting same issue mentioned in bug description on Android but on iOS its working fine.

Screencast: http://www.screencast.com/t/vhMBFklz

ApplicationOutput: https://gist.github.com/Parmendrak/dcaf97bd004f6723e658
XAP Log: https://gist.github.com/Parmendrak/c3aa46ba04439ff49c78
IDE Log: https://gist.github.com/Parmendrak/72ada227fcc98581180e


Environment info: 

Xamarin.Forms: 1.5.0.6396-pre1
Xamarin Studio 5.9.5 (build 10)
Mono 4.0.3 ((detached/d6946b4)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400030020
Xcode 6.2 (6776)
Xamarin.iOS : 8.10.4.46 (Enterprise Edition)
Xamarin.Android : 5.1.5.3 (Enterprise Edition)
Mac OS X 10.9.4
Comment 3 vikas 2015-08-21 11:27:05 UTC
We are currently blocked on this and unable to ship the app. Would appreciate a quick fix/workaround for this issue.
Comment 4 Gaurav Kumar 2015-09-02 07:16:30 UTC
Any Update on this bug ?
Comment 5 Paul DiPietro [MSFT] 2015-11-12 16:12:48 UTC
If you use the AppCompat the application it should help to resolve the issue. You can see this blog post for some extra information: https://blog.xamarin.com/material-design-for-your-xamarin-forms-android-apps/