草庐IT

m_navigations

全部标签

javascript - 单击 React-Navigation 中的 Bottom Tab Navigator 后如何打开 DrawerNavigator?

我正在使用react-navigation并尝试在单击BottomTabNavigator中的选项卡项目时打开抽屉(使用DrawerNavigator)。我现在的代码是这样的exportdefaultcreateBottomTabNavigator({Dashboard:{screen:Dashboard,navigationOptions:{tabBarLabel:'Dashboard',tabBarIcon:({tintColor})=>()}},Customers:{screen:Customers,navigationOptions:{tabBarLabel:'Customer

android - 带有查询参数的 Jetpack Navigation 深度链接

在新的JetpackNavigation库中似乎无法使用查询参数处理深层链接。如果将以下内容放入navigation.xml:那么深层链接不会打开fragment。经过一些挖掘后,我发现当NavDeepLink将url从xml转换为模式正则表达式时,罪魁祸首可能在其中。看起来问题是一个没有被排除的问号。我写了一个失败的测试:@Testfuntest(){valnavDeepLink=NavDeepLink("scheme://host/path?query1={query_value}")valdeepLink=Uri.parse("scheme://host/path?query1=

Android google.navigation Intent 模式?

我目前正在开发一个将启动导航Intent的应用程序。我知道这不是官方API,但它可以按照我想要的方式完美运行。我允许用户选择驾驶、步行和巴士导航到某个位置。直接启动Googlemap导航的Intent如下所示:google.navigation:ll=+纬度和经度,然后+&mode=然后是您的交通方式。例如,要使用步行路线导航到某个区域:google.navigation:ll=blah,blah&mode=w默认是开车,或者&mode=d,骑车是&mode=b,但是我想不通bus(公共(public)交通)。有人做过吗?谢谢!编辑:到目前为止,我发现mode=public提供自行车方

android - 如何将 Navigation Drawer 添加到应用程序中的所有 Activity?

在所有Activity上添加抽屉导航的有效方法是什么?我不想在所有Activity及其布局中重复NavigationDrawer的代码。是否有可能以某种方式添加导航。BaseActivity(自定义类)中的抽屉,然后每个其他Activity都将扩展BaseActivity以便拥有抽屉导航? 最佳答案 IsitpossiblesomehowtoaddNav.DrawerinBaseActivity(customclass)andtheneveryotheractivitywillextendBaseActivityinordertoh

Android Jetpack Navigation 如何处理 Toolbar 和 BottomNavBar 内容

我对导航组件如何适应应用程序行为感到有点困惑。在教程中,一切看起来都不错而且Shiny,您不会做太复杂的事情,但在实际应用程序中实现时,情况似乎有所不同。导航前在实现导航之前,我必须手动运行fragment事务。为了做到这一点,我的fragment将实现一个接口(interface)onFragmentAction,它将一个bundle传递给主要的Activity并在基于操作的Activity中,将当前fragment替换为另一个fragment。第二个需要处理的部分是顶部工具栏和BottomAppBar。例如,BottomAppBar需要让FAB在某些fragment上以不同方式对齐

android - React Native Navigation v2(wix)禁用TopBar

我正在使用来自wix的React-Native-Navigationv2(不是React-Navigation)。我尝试禁用默认呈现的topBar。我使用了以下选项并正在渲染bottomTabs:Navigation.setDefaultOptions({topBar:{visible:false,_height:0,drawBehind:true,},});topBar消失,但在初始打开bottomTabs的Tab时显示drawBehind动画。有没有办法禁用topBar?最好的问候 最佳答案 我将animate:false添加到

widget - flutter : How to navigate to new page after state change?

状态改变后如何导航到新页面?我有一个需要先登录的应用程序。只有在登录后,应用程序组件才会完全创建。所以我写了这样的东西:主应用classAppComponentStateextendsStateimplementsCredentialProvider{Credentialcredential;@overrideWidgetbuild(BuildContextcontext){if(credential==null){returnnewMaterialApp(routes:{'/':(BuildContextcontext)=>newLoginPage(this),},);}else{r

widget - flutter : How to navigate to new page after state change?

状态改变后如何导航到新页面?我有一个需要先登录的应用程序。只有在登录后,应用程序组件才会完全创建。所以我写了这样的东西:主应用classAppComponentStateextendsStateimplementsCredentialProvider{Credentialcredential;@overrideWidgetbuild(BuildContextcontext){if(credential==null){returnnewMaterialApp(routes:{'/':(BuildContextcontext)=>newLoginPage(this),},);}else{r

dart - flutter 错误 "Could not navigate to initial route"

我在启动Flutter应用时遇到以下错误:══╡EXCEPTIONCAUGHTBYFLUTTERFRAMEWORK╞═════════════════════════════════════════════════════════Thefollowingmessagewasthrown:Couldnotnavigatetoinitialroute.Therequestedroutenamewas:"/animals/cats/lolcats"Thefollowingrouteswerethereforeattempted:*/*/animals*/animals/cats*/anima

dart - flutter 错误 "Could not navigate to initial route"

我在启动Flutter应用时遇到以下错误:══╡EXCEPTIONCAUGHTBYFLUTTERFRAMEWORK╞═════════════════════════════════════════════════════════Thefollowingmessagewasthrown:Couldnotnavigatetoinitialroute.Therequestedroutenamewas:"/animals/cats/lolcats"Thefollowingrouteswerethereforeattempted:*/*/animals*/animals/cats*/anima