roubachof / Sharpnado.Tabs

Pure MAUI and Xamarin.Forms Tabs, including fixed tabs, scrollable tabs, bottom tabs, badge, segmented control, custom tabs, button tabs, bendable tabs...
MIT License
502 stars 66 forks source link

The label in UnderlinedTabItem is not showing (MAUI) #86

Closed bluedrakim closed 1 year ago

bluedrakim commented 1 year ago

I can't see the label in each UnderlinedTabItem. When I change UnderlinedTabItem to BottomTabItem, then the app automatically adapts the new TabItem and then I can see the label. but when I refresh the app I can't see the text again. Then when I change BottomTabItem to UnderlinedTabItem, the text appears again. But again, when I leave the app and log in again, I can't see the text unless I manually change the code and switch between UnderlinedTabItem and BottomTabItem. All TabItem works like that like SegmentedTabItem does the same thing. I even tried with an Android Emulator but it does the same thing.

<tabs:TabHostView Grid.Row="1" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" Margin="0,10,0,0">
            <tabs:UnderlinedTabItem Label="1" SelectedTabColor="#ffca73" UnselectedLabelColor="Gray" BackgroundColor="white"/>
            <tabs:UnderlinedTabItem Label="2" SelectedTabColor="#ffca73" UnselectedLabelColor="Gray" BackgroundColor="white"/>
            <tabs:UnderlinedTabItem Label="3" SelectedTabColor="#ffca73" UnselectedLabelColor="Gray" BackgroundColor="white"/>
</tabs:TabHostView>

This is what it looks like when I just start the app. Screenshot_20230620_191000

Then below picture is what it looks like when I change UnderlinedTabItem to BottomTabItem. It changes automatically and shows the label. Screenshot_20230620_190933

Then if I change BottomTabItem to UnderlinedTabItem it works well like below. Screenshot_20230620_190919

But then when I get out of the app and run it again, it disappears and goes back to the first picture. Screenshot_20230620_191000

vtserej commented 1 year ago

Set the background color transparent