Git Product home page Git Product logo

bottomtabbedpage-xamarin-forms's People

Contributors

binhsignkeys avatar devinzhou102 avatar dhindrik avatar ismanapa avatar pfedotovsky avatar tuyen-vuduc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bottomtabbedpage-xamarin-forms's Issues

android.widget.FrameLayout cannot be cast to android.widget.ImageView

The first time opening app => exception : android.widget.FrameLayout cannot be cast to android.widget.ImageView

Bellow my home page xaml :

<naxam:BottomTabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:naxam="clr-namespace:Naxam.Controls.Forms;assembly=Naxam.Controls.Forms"
xmlns:local="clr-namespace:photocloak.View;assembly=photocloak"
x:Class="photocloak.View.Home">
    <local:Search />
    <local:ListCloak/>
</naxam:BottomTabbedPage>

Could not install package

I get this error when I try to install your package in a newly created Xamarin.Forms project.
Could not install package 'Naxam.BottomTabbedPage 0.2.0.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

What can I do to install your package?

How to change the font type for the Title of the tabs?

Hello,

I would like to know if there is a way to use the "default" font type for the Title of the tabs?

For me, the "default" font type is the one that we can found in the Android Bottom Navigation View, like described in this blog.

Regards,

Demo crash when switch page

I got a switch page problem.
When switch page, it always pop to root, so I downloaded demo for test.
And I found out demo has same problem and it crash.

Call Stack
0x65 in Naxam.Controls.Platform.Droid.Utils.BottomTabbedRendererUtils.SwitchPage at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\Utils\SizeUtils.cs:81,13 C# 0x3 in Naxam.Controls.Platform.Droid.BottomTabbedRenderer.OnNavigationItemSelected at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\BottomTabbedRenderer.Tabs.cs:31,13 C# [External Code] 0x84 in Naxam.Controls.Platform.Droid.Utils.BottomTabbedRendererUtils.EnsureTabIndex at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\Utils\SizeUtils.cs:50,17 C# 0x61 in Naxam.Controls.Platform.Droid.Utils.BottomTabbedRendererUtils.ChangePage at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\Utils\SizeUtils.cs:317,13 C# 0x9 in Naxam.Controls.Platform.Droid.BottomTabbedRenderer.SwitchContent at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\BottomTabbedRenderer.cs:166,13 C# 0x2B in Naxam.Controls.Platform.Droid.BottomTabbedRenderer.OnElementPropertyChanged at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\BottomTabbedRenderer.cs:89,17 C# 0xB1 in Naxam.Controls.Platform.Droid.Utils.BottomTabbedRendererUtils.SwitchPage at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\Utils\SizeUtils.cs:87,17 C# 0x3 in Naxam.Controls.Platform.Droid.BottomTabbedRenderer.OnNavigationItemSelected at C:\Users\total\Downloads\bottomtabbedpage-xamarin-forms\BottomTabbedPage.Droid\BottomTabbedRenderer.Tabs.cs:31,13 C#

Main cause is when switch page
public static void SwitchPage(this BottomTabbedRenderer renderer, IMenuItem item)
would be called twice.

Displaying text after navigation

Hi, I'm using the component, but I have a problem.

After calling the screen in a navigation it does not display the title in the View. Is it possible to display using some property?

I am using Xamarin.Forms and testing in IOS.

The View title is used only in the menu. Thank you

simulator screen shot - iphone 8 - 2018-06-11 at 17 42 53

Change Tab and PopToRootAsync error

hi guys!

I am getting the stacktrace below when trying to navigate between tabs.

MonoDroid] UNHANDLED EXCEPTION: [MonoDroid] System.InvalidOperationException: PopToRootAsync is not supported globally on Android, please use a NavigationPage. [MonoDroid] at Xamarin.Forms.Platform.Android.AppCompat.Platform.Xamarin.Forms.INavigation.PopToRootAsync (System.Boolean animated) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:126 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.OnPopToRootAsync (System.Boolean animated) [0x00043] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:181 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.PopToRootAsync (System.Boolean animated) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:99 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.OnPopToRootAsync (System.Boolean animated) [0x00043] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:181 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.PopToRootAsync (System.Boolean animated) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:99 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.OnPopToRootAsync (System.Boolean animated) [0x00043] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:181 [MonoDroid] at Xamarin.Forms.Internals.NavigationProxy.PopToRootAsync () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\NavigationProxy.cs:94 [MonoDroid] at Naxam.Controls.Platform.Droid.Utils.BottomTabbedRendererUtils.SwitchPage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Views.IMenuItem item) [0x00085] in <e760b94005374f89bb613a36b42ef3f8>:0 [MonoDroid] at Naxam.Controls.Platform.Droid.BottomTabbedRenderer.OnNavigationItemSelected (Android.Views.IMenuItem item) [0x00000] in <e760b94005374f89bb613a36b42ef3f8>:0 [MonoDroid] at Android.Support.Design.Widget.BottomNavigationView+IOnNavigationItemSelectedListenerInvoker.n_OnNavigationItemSelected_Landroid_view_MenuItem_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_item) [0x0000f] in <7aea3801170b4074a61ce58defd33d09>:0 [MonoDroid] at (wrapper dynamic-method) System.Object.4cbec557-4c41-4a9e-a9c6-c4e767ef5c03(intptr,intptr,intptr) [art] JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable

Failed to resolve assembly

Hello. I implemented your code and it works when the page is a BottomTabbedPage.
I want to use it inside a MasterDetailPage, so I have side menu and bottom menu, which is what i'm doing BottomNavigationBarXF (that package is outdated).

When I try to set BottomTabbedPage as MasterDetailPage.Detail I get this error:
Error: Failed to resolve assembly: 'Naxam.Controls.Forms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

Here is my code:

<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:Panorama"
             xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" 
             ios:Page.UseSafeArea="true" 
             xmlns:naxam="clr-namespace:Naxam.Controls.Forms;assembly=Naxam.Controls.Forms"
             x:Class="Panorama.Menus.Monitoring">
    <MasterDetailPage.ToolbarItems>
        <ToolbarItem Icon="puzzle.png"></ToolbarItem>
    </MasterDetailPage.ToolbarItems>
    <!--#region Master -->
    <MasterDetailPage.Master>
        <local:MasterPage/>
    </MasterDetailPage.Master>
    <!--#endregion-->

    <!--#region Detail -->
    <MasterDetailPage.Detail>
                <!--#region Bottom menu-->
                <!--Bottom bar menu-->
                <naxam:BottomTabbedPage></naxam:BottomTabbedPage>
                <!--#endregion-->
    </MasterDetailPage.Detail>
    <!--#endregion-->

    </MasterDetailPage>

Switch tab page cause previous tab page reload on Xamarin.Forms Android

I have a project and I use bottomtabbedpage-xamarin-forms plug-in in my project.
I use Xamarin.Forms Version 2.5.0.280555.
It is fine.
But if I update grade Xamarin.Forms to higher version, I got an problem.
The problem is if I switch tab page then switch back to previous tab page.
The previous tab page would reload.
For example, I switch to page3 from page1, and then switch back to page1.
Page1 would reload.
I tried 3.0.0.561731 got the same result.
My test project

I don't if this caused by bottomtabbedpage-xamarin-forms or by Xamarin.Forms.

Thanks.

still not compatible with 25.4.0.1

since Xamarin.Android.Support.Design 25.4.0.1 doesn't provide the BottomNavigationMenu
you have to downgrade your Xamarin.Android.Support.Design to 25.3

Can not resolve reference: `Xamarin.Android.Support.ViewPager`

Suddenly Getting this error on build:
Can not resolve reference: Xamarin.Android.Support.ViewPager, referenced by Naxam.Ittianyu.BottomNavExtension. Please add a NuGet package or assembly reference for Xamarin.Android.Support.ViewPager, or remove the reference to Naxam.Ittianyu.BottomNavExtension
visual studio 2019
Naxam.BottomTabbedPage 0.3.0.2
Xamarin.Android.Support.ViewPager 28.0.0.1 is also installed

TabPage sliding indicator animation problem

when one of children of BottomTabbedPage is xamarin TabbedPage whith two tabs for example, every time I switch tabs made by BottomTabbedPage and returning to child tab with xamarin TabbedPage - sliding indicator animation when trying to switch tabs in TabbedPage by clicking on tab name not working first time, and then go to normal behavior unless I again switch tabs made by BottomTabbedPage.
https://www.youtube.com/watch?v=p-lBmZZfxD0

Crash with BottomTabbedRendererUtils.ChangePage

Hi, I've got a crash.

BottomTabbedPage 2.0.3
Xamarin.Forms 3.1.0

BottomTabbedRendererUtils.ChangePage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Widget.FrameLayout pageContainer, Xamarin.Forms.Page page)
Java.Lang.RuntimeException: Attempt to invoke virtual method 'void android.support.v7.widget.GapWorker.remove(android.support.v7.widget.RecyclerView)' on a null object reference

ExceptionDispatchInfo.Throw ()
JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
ViewGroup.RemoveViewAt (System.Int32 index)
BottomTabbedRendererUtils.ChangePage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Widget.FrameLayout pageContainer, Xamarin.Forms.Page page)
BottomTabbedRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
MultiPage`1[T].OnPropertyChanged (System.String propertyName)
MultiPage`1[T].set_CurrentPage (T value)
BottomTabbedRendererUtils.SwitchPage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Views.IMenuItem item)
BottomTabbedRenderer.OnNavigationItemSelected (Android.Views.IMenuItem item)
BottomNavigationView+IOnNavigationItemSelectedListenerInvoker.n_OnNavigationItemSelected_Landroid_view_MenuItem_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_item)

How can I fix it?

Can I only load tabbedpage when I selected

TabbedPage has performance issue because That load entire tab view when init
And in android, several ways solve this problem like using 'setUserVisibleHint'

And Can update this performance issue in this project??

Item have got enough place to be displaying in full size

Hello,

Sorry to bothering you:
I think there is an issue on the SizeUtils.cs

I got this:
screenshot 2018-10-25 at 14 14 28

My Setup

 void SetupBottomTabs()
        {
            BottomTabbedRenderer.FontSize = 10;
            BottomTabbedRenderer.IconSize = 20;
            BottomTabbedRenderer.ItemSpacing = 0;
            BottomTabbedRenderer.BottomBarHeight = 56;
            BottomTabbedRenderer.ItemAlign = ItemAlignFlags.Center;
            BottomTabbedRenderer.MenuItemIconSetter = (menuItem, iconSource, selected) =>
            {
                var iconized = Iconize.FindIconForKey(iconSource.File);
                if (iconized == null)
                {
                    BottomTabbedRenderer.DefaultMenuItemIconSetter.Invoke(menuItem, iconSource, selected);
                    return;
                }
                var drawable = new IconDrawable(this, iconized).Color(Color.White).SizeDp(20);
                menuItem.SetIcon(drawable);
            };
        }

Or have you got an idea on what I'm doing wrong?

Regards,

Migrate to .Net Standard

Hi this issue i to track the support for .NET Standard and avoid the warning when include the package in to .NET Standard xamarin forms project.
warning NU1701: Package 'Naxam.BottomTabbedPage 0.1.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'.

Can i get event on tab clicked?

Hello,

Is it possible to get an event when tab is clicked?

I need to do this: when i am on certain tab, and i click same tab again, i'd like the page to pop to root.

Looks like iOS supports this feature by default, and i need to do this on Android.

or is there any way to achieve this? Thank you.

Snackbar overlapping Bottom Navigation bar

Is it possible to move the Snackbar above Bottom Navigation bar.

I have created the snackbar like this

var view = ((Activity)Forms.Context).FindViewById(Android.Resource.Id.Content); var snack = Snackbar.Make(view, message, duration); if (actionText != null && action != null) snack.SetAction(actionText, action); snack.Show();

But the snackbar overlaps the bottom bar.

image

a bug in Xamarin.Forms3.0.0.446417

First,update Xamarin.Forms to 3.0.0.446417.
While I am setting App.Current.MainPage = new NavigationPage(...) in BottomTabbedPage leads the App to crash.

It's a funny thing, the method "Dispose(bool disposing)" in BottomTabbedRenderer would be called twice, so that cause the crash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.