Android 上的 Wikitude 个性化视图
我正在使用 Wikitude API 创建一个应用程序,但我无法自定义视图。
我已经询问过开发人员,我知道我无法在当前发布版本(适用于 Android)的主视图中添加按钮,但我想知道是否可以在选项菜单中添加更多按钮。现在,当我按下它时,我只看到一个按钮,上面写着“忽略高度”,我可以修改该按钮和/或向该菜单添加更多按钮吗?
我检查了其他帖子,但没有任何答案。这些帖子有点旧,所以这就是我再次询问的原因。 我没有找到任何有用的文档。
非常感谢任何帮助
I am creating an app using Wikitude API, but I haven't been able to customize the view.
I have asked the developers and I know I can't add buttons to the main view in the current release version (for Android), but I am wondering if I can add more buttons to the options menu. Right now when I press it I get just one button that says "Ignore Altitude" can I modify that button and/or add more buttons to that menu?
I have checked other posts but there aren't any answers. The posts are a little bit old so that is why I am asking again.
I haven't found any useful documentation.
Any help is greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我正确理解您的问题,那么请尝试以下操作:在主 Activity 的方法
prepareIntent()
中,您最多可以添加 3 个菜单项:然后将回调函数定义为另一个 Activity (带有对话框、列表和内容)。这种方式对我来说效果很好。
我也在玩弄维基百科,但很难找到有据可查的东西!
if I understood your question correctly, then please try the following: in the method
prepareIntent()
of your main Activity, you can add up to 3 menu items:Then you define the callback function as another activity (with dialog, list and stuffs). It works fine this way for me.
I am also playing around a bit with Wikitude, but hard to find something well documented!
是的,您可以添加最多三个菜单按钮,就像您正确阅读文档一样
,将 Intent 变量设置为
public static Final String LOCATION_INTENT = "wikitudeapi.mylocationactivity";
还将清单中的操作声明为,
Yes , You can Add upto three menu button as if you read doc properly
With making Intent variable as
public static final String LOCATION_INTENT = "wikitudeapi.mylocationactivity";
Also declare action in manifest as,