我在学习导航码标,第一步他们就说,
1. Click File > Settings (Android Studio > Preferences on Mac)
2. Select the Experimental category in the left pane
3. Check Enable Navigation Editor
4. Restart Android Studio
但
在AndroidStudio3.3中,我创建了我创建的新项目,我遵循了上述步骤,但没有找到启用导航编辑器复选框。
有没有人面临过这类问题?有什么帮助吗?
发布于 2019-01-29 03:05:50
在AndroidStudio3.3中,导航编辑器不再处于试验阶段。要使用导航,可以通过名称导航在资源文件夹中创建一个新目录,并在其中创建新navigation.xml文件。
更多信息可在下面的链接中找到
发布于 2019-01-29 03:22:36
我刚找到了关于Android Studio 3.3的发行说明
因为他们已经宣布了使用导航体系结构组件实现导航。
创建导航图
若要向项目添加导航图,请执行以下操作:
- A `navigation` resource directory is created within the res directory.
- A `nav_graph.xml` file is created within the navigation directory.
- The `nav_graph.xml` file opens in the Navigation Editor. This XML file contains your navigation graph.
https://stackoverflow.com/questions/54419539
复制相似问题