In MAUI TabbedPage tabmode:Scrollbar is not working, all tabs are coming in fixed mode. How to solve this issue?

Sadh, Siddhi 0 Reputation points
2023-07-19T11:11:31.4633333+00:00

In MAUI TabbedPage tabmode:Scrollbar is not working, all tabs are coming in fixed mode. How to solve this issue?

Added Tabbar.xml file in Platform/Resources/Android/Layout/Tabbar.xml. Added below code in project file also,

<ItemGroup> <AndroidResource Include="Platforms\Android\Resources\layout\Tabbar.axml" /> </ItemGroup>

Tabbar.axml code is below,

<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#000000" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:tabIndicatorColor="@android:color/white" app:tabTextColor="@android:color/white" app:tabGravity="fill" app:tabTextAppearance="@style/TabTextAppearance" app:tabMode="scrollable" />

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-07-21T07:12:58.4133333+00:00

    Hello,

    Thank you for your feedback.

    I used your code to successfully reproduce your illustration in MAUI and Xamarin.

    After testing, it is not work after setting the app:tabMode property on TabbedPage in the current MAUI.

    For issues that arise after this migration, it is recommended that you publish it to the Github repository to make our product group aware of it.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.